/** * GAP-TOOLS-029: Structured Output Tool. * * Parse, validate, and format structured data in JSON, YAML, Markdown, * and ASCII table formats. */ export type OutputSchemaType = 'json' | 'yaml' | 'markdown' | 'table'; export interface OutputSchema { /** The expected output format. */ type: OutputSchemaType; /** Optional JSON Schema subset for validation (type, properties, required). */ schema?: { type?: string; properties?: Record; required?: string[]; }; } export interface StructuredOutputResult { /** The raw input string. */ raw: string; /** The parsed data (or null if parsing failed). */ parsed: unknown; /** Whether the output is valid against the schema. */ valid: boolean; /** Validation error messages. */ errors: string[]; } /** * Parse raw string input and validate against an OutputSchema. */ export declare function parseStructuredOutput(raw: string, schema: OutputSchema): StructuredOutputResult; /** * Format an array of objects as an ASCII table. */ export declare function formatAsTable(data: Array>, columns?: string[]): string; /** * Format structured data as markdown. */ export declare function formatAsMarkdown(data: unknown): string; //# sourceMappingURL=structuredOutput.d.ts.map