/** * Options for processing context */ interface ProcessingContextOptions { /** * If true, collect all validation errors instead of stopping at first error. * Default: true (when context is provided) */ collectAllErrors?: boolean; /** * If true, apply strict validation rules. * Default: false */ strictMode?: boolean; } /** * Context object passed through schema processing to collect errors * and maintain processing state. This provides a clean way to pass * options and collect results through the processing chain. */ declare class ProcessingContext { private _errors; private _options; constructor(options?: ProcessingContextOptions); /** * Whether to collect all errors or stop at first */ get collectAllErrors(): boolean; /** * Whether strict validation mode is enabled */ get strictMode(): boolean; /** * Adds an error to the collection */ addError(error: Error): void; /** * Adds multiple errors to the collection */ addErrors(errors: Error[]): void; /** * Returns all collected errors */ getErrors(): Error[]; /** * Returns the number of collected errors */ get errorCount(): number; /** * Returns true if any errors were collected */ hasErrors(): boolean; /** * Clears all collected errors */ clearErrors(): void; } export { ProcessingContext, type ProcessingContextOptions };