import type { BamlType, BamlTypeToken } from './wire_ty.js'; export interface InvocationOptions { readonly trace?: unknown; readonly cancel?: unknown; readonly timeoutMs?: number | null; readonly signal?: AbortSignal | null; } export interface InvokeOptions { $baml?: InvocationOptions | null; $types?: Record | null; } export declare function invoke(target: string | ((...args: any[]) => unknown), args: Record, options?: InvokeOptions): Promise; export declare function invokeSync(target: string | ((...args: any[]) => unknown), args: Record, options?: InvokeOptions): unknown; /** Link a native source to one call; retiring the waiter removes the listener. */ export declare function attachSignal(signal: AbortSignal | null | undefined, callId: bigint): () => void; //# sourceMappingURL=invocation.d.ts.map