/** * Error Message Templates (Task 014) * * Centralized error message templates for consistent formatting across TONL. * * ## Style Guide * - Format: "{Operation} failed: {reason}. {context}" * - First word capitalized, rest lowercase unless proper noun * - Use single quotes for values: 'value' * - Use backticks for code: `code` * - Include relevant context in parentheses: (expected: X, got: Y) */ /** * Error message templates for consistent formatting */ export declare const ErrorMessages: { readonly UNEXPECTED_TOKEN: (token: string, line: number, col?: number) => string; readonly INVALID_HEADER: (header: string) => string; readonly UNCLOSED_QUOTE: (line: number) => string; readonly INVALID_DELIMITER: (delimiter: string) => string; readonly MALFORMED_LINE: (line: number, content: string) => string; readonly TYPE_MISMATCH: (expected: string, actual: string, path?: string) => string; readonly INVALID_INDEX: (index: number, length: number) => string; readonly NOT_AN_ARRAY: (path: string) => string; readonly NOT_AN_OBJECT: (path: string) => string; readonly PROTOTYPE_POLLUTION: (property: string) => string; readonly PATH_TRAVERSAL: (path: string) => string; readonly REGEX_TOO_LONG: (length: number, max: number) => string; readonly REGEX_TOO_COMPLEX: (depth: number, max: number) => string; readonly DANGEROUS_REGEX: (pattern: string) => string; readonly INPUT_TOO_LARGE: (size: number, max: number) => string; readonly LINE_TOO_LONG: (length: number, max: number, line?: number) => string; readonly DEPTH_EXCEEDED: (depth: number, max: number, key?: string) => string; readonly BLOCK_LINES_EXCEEDED: (lines: number, max: number) => string; readonly BUFFER_OVERFLOW: (current: number, incoming: number, max: number) => string; readonly CIRCULAR_REFERENCE: (key: string) => string; readonly SELF_REFERENCE: (key: string, property?: string) => string; readonly INVALID_PATH: (path: string, reason: string) => string; readonly FILTER_SYNTAX: (filter: string, position?: number) => string; readonly QUERY_TOO_DEEP: (depth: number, max: number) => string; readonly SCHEMA_VIOLATION: (field: string, constraint: string, value: string) => string; readonly REQUIRED_FIELD: (field: string) => string; readonly INVALID_ENUM: (field: string, value: string, allowed: string[]) => string; readonly PATTERN_MISMATCH: (field: string, pattern: string) => string; readonly FILE_NOT_FOUND: (path: string) => string; readonly FILE_LOCKED: (path: string) => string; readonly BACKUP_NOT_FOUND: (path: string) => string; readonly OPERATION_FAILED: (operation: string, reason: string) => string; readonly NOT_IMPLEMENTED: (feature: string) => string; }; /** * Type for error message keys */ export type ErrorMessageKey = keyof typeof ErrorMessages; //# sourceMappingURL=messages.d.ts.map