import type { JsonSchemaObject } from "../../shared/types.ts"; export declare const STRUCTURED_OUTPUT_SCHEMA_ENV = "PI_SUBAGENT_STRUCTURED_OUTPUT_SCHEMA"; export declare const STRUCTURED_OUTPUT_CAPTURE_ENV = "PI_SUBAGENT_STRUCTURED_OUTPUT_CAPTURE"; export declare const MISSING_STRUCTURED_OUTPUT_CALL_ERROR = "Missing structured_output call; this step has outputSchema and must finish by calling structured_output."; export interface StructuredOutputRuntime { schema: JsonSchemaObject; schemaPath: string; outputPath: string; } export declare function createStructuredOutputToolParameters(schema: JsonSchemaObject): JsonSchemaObject; interface CompiledJsonSchema { Check(value: unknown): boolean; Errors(value: unknown): Iterable<{ instancePath?: string; message?: string; }>; } type CompileJsonSchema = (schema: unknown) => CompiledJsonSchema; export declare function resolveCompileFromPackageRoot(packageRoot: string): Promise; export declare function assertJsonSchemaObject(schema: unknown, label?: string): asserts schema is JsonSchemaObject; export declare function createStructuredOutputRuntime(schema: JsonSchemaObject, baseDir?: string): StructuredOutputRuntime; export declare function validateStructuredOutputValue(schema: JsonSchemaObject, value: unknown): Promise<{ status: "valid"; } | { status: "invalid"; message: string; }>; export declare function readStructuredOutput(runtime: StructuredOutputRuntime): Promise<{ value?: unknown; error?: string; }>; export declare function cleanupStructuredOutputRuntime(runtime: StructuredOutputRuntime | undefined): void; export {}; //# sourceMappingURL=structured-output.d.ts.map