import type { Tool } from "@earendil-works/pi-ai"; export declare function makeStrictJsonSchema(schema: Tool["parameters"]): Record; export declare function getJsonSchemaToolParameters(tool: Tool, strict: boolean | undefined): Tool["parameters"]; export declare function resolveJsonSchemaStrictSampling(tool: Tool, supportsStrictMode: boolean): boolean | undefined; 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, inputDelta: string): string | undefined; export declare function closeGrammarToolInputJson(buffer: GrammarToolInputJsonBuffer, inputProperty: string, finalInput: string | undefined): string | undefined; export declare function resolveGrammarConstrainedSampling(tool: Tool, supportsOpenAIGrammarTools: boolean): GrammarConstrainedSampling | undefined; export declare function createGrammarToolInputProperties(tools: Tool[] | undefined, supportsOpenAIGrammarTools: boolean): ReadonlyMap;