Files
faceclaw/app/native/kotlin-platform.d.ts
T
2026-09-18 19:59:13 -07:00

12 lines
425 B
TypeScript

/** Exported native API normalized across Java interfaces and Obj-C protocols. */
export interface KotlinBridge {
platform(): string;
threadName(): string;
isMainThread(): boolean;
greet(name: string): string;
/** Synchronous callback; must not throw across the native boundary. */
roundTrip(message: string, transform: (message: string) => string): string;
}
export function createKotlinBridge(): KotlinBridge;