import type { BamlPanic } from './shared/errors.js'; import { ExecutionContext } from './shared/execution_context.js'; export declare function getCurrentExecutionContext(): ExecutionContext | undefined; export declare function runWithExecutionContext(active: ExecutionContext, body: () => T): T; export declare function currentExecutionState(): string | undefined; export declare const supportsSyncStreamPulls = false; export declare function captureCallbackContext(_callId: bigint): () => void; export declare function runHostCallback(callId: number, args: Uint8Array, callback: () => void | Promise, execution?: object, _markerIdentity?: object): void | Promise; /** * How the bridge binds a user function as a host callable on this platform. * On the Web the runtime registers the frame-decoding wrapper itself and * answers the bridge with the callable's key as a decimal string. */ export declare function registerCallableDispatch(dispatch: (callId: number, argsBytes: Uint8Array, execution?: object) => void, marker: object | undefined): string; export declare function handleExitPanic(_code: number, fallbackPanic: BamlPanic): never; export declare function consumeHostAdoption(_identity: object): boolean; export declare function observeHostCallbackResult(_callId: number, _error: boolean, _value: unknown): void; //# sourceMappingURL=platform.d.ts.map