/** * JSON Parser Error Factories * * Error types for JSON parsing and validation. * Uses ts-rust-result 2.2 error infrastructure. */ import { type DomainError } from '@jenova-marie/ts-rust-result/errors'; /** * JSON parsing failed error */ export declare const jsonParseError: (text: string, cause?: Error) => DomainError & { kind: "JSONParseError"; }; /** * JSON extraction failed error */ export declare const jsonExtractionError: (text: string, directError: Error, extractionError: Error) => DomainError & { kind: "JSONExtractionError"; }; /** * JSON structure validation failed error */ export declare const jsonStructureError: (data: any, requiredFields: string[], missingFields: string[]) => DomainError & { kind: "JSONStructureError"; }; /** * JSON parser error type (union of all possible JSON parsing errors) */ export type JSONError = DomainError & { kind: 'JSONParseError' | 'JSONExtractionError' | 'JSONStructureError'; }; //# sourceMappingURL=errors.d.ts.map