import { type JsonObject } from "./types.js"; /** Tool parameters in Foundation Models' `GenerationSchema` dialect. */ export interface FoundationModelsSchema { /** Root object schema accepted by `GenerationSchema`'s decoder. */ schema: JsonObject; /** * Argument paths whose values the model emits as JSON-encoded strings; `"*"` * matches every array element. */ encodedPaths: string[][]; } /** Converts a tool's wire JSON Schema into Foundation Models' dialect. */ export declare function toFoundationModelsSchema(schema: unknown, name: string): FoundationModelsSchema; /** Parses the JSON-encoded argument values produced for {@link FoundationModelsSchema.encodedPaths}. */ export declare function decodeFoundationModelsArguments(args: Record, encodedPaths: readonly string[][]): Record;