import { BamlHandle } from '../native.js'; import type { InvocationOptions } from './invocation.js'; import type { BamlPrompt } from './proto.js'; import type { BamlType } from './wire_ty.js'; export interface BamlFunctionSpecCallOptions { $baml?: InvocationOptions | null; client?: unknown; on_event?: unknown; } export interface BamlFunctionSpecBuildRequestOptions { $baml?: InvocationOptions | null; client?: unknown; } /** An opaque, bound LLM recipe owned by the engine that created it. */ export declare class BamlFunctionSpec { private readonly handle; constructor(handle: BamlHandle); /** Internal: construct a FunctionSpec proxy from a tagged heap handle. */ static _fromHandle(handle: BamlHandle, _classFqn: string): BamlFunctionSpec; /** Internal: expose the inner handle for inbound encoding. */ _toHandle(): BamlHandle; nameSync(options?: { $baml?: InvocationOptions | null; }): string; name(options?: { $baml?: InvocationOptions | null; }): Promise; argumentsSync(options?: { $baml?: InvocationOptions | null; }): Record; arguments(options?: { $baml?: InvocationOptions | null; }): Promise>; outputTypeSync(options?: { $baml?: InvocationOptions | null; }): BamlType; outputType(options?: { $baml?: InvocationOptions | null; }): Promise; promptSync(options?: { $baml?: InvocationOptions | null; }): BamlPrompt; prompt(options?: { $baml?: InvocationOptions | null; }): Promise; toolsSync(options?: { $baml?: InvocationOptions | null; }): unknown; tools(options?: { $baml?: InvocationOptions | null; }): Promise; requestedModelSync(options?: { $baml?: InvocationOptions | null; }): string; requestedModel(options?: { $baml?: InvocationOptions | null; }): Promise; buildRequestSync(options?: BamlFunctionSpecBuildRequestOptions): unknown; buildRequest(options?: BamlFunctionSpecBuildRequestOptions): Promise; parseSync(json: string, options?: { $baml?: InvocationOptions | null; }): TOut; parse(json: string, options?: { $baml?: InvocationOptions | null; }): Promise; callSync(options?: BamlFunctionSpecCallOptions): TOut; call(options?: BamlFunctionSpecCallOptions): Promise; private _callSync; private _callAsync; toString(): string; } //# sourceMappingURL=function_spec.d.ts.map