import type { Tool } from "@earendil-works/pi-ai"; export interface GrammarConstrainedSampling { format: "lark" | "regex"; definition: string; inputProperty: string; } export interface GrammarToolInputJsonBuffer { input: string; started: boolean; closed: boolean; } export declare function getGrammarToolInput(toolName: string, arguments_: Record, inputProperty: string): string; export declare function appendGrammarToolInputJsonDelta(buffer: GrammarToolInputJsonBuffer, inputProperty: string, nextInput: string, close: boolean): string | undefined; export declare function resolveGrammarConstrainedSampling(tool: Tool, supportsOpenAIGrammarTools: boolean): GrammarConstrainedSampling | undefined; export declare function createGrammarToolInputProperties(tools: Tool[] | undefined, supportsOpenAIGrammarTools: boolean): ReadonlyMap;