export declare namespace ErrorCollector {
    interface ValidationError {
        message: string;
        path: string[];
    }
    interface ValidationWarning {
        message: string;
        path: string[];
    }
}
/**
 * ErrorCollector is used to collect validation errors and warnings during parsing.
 * It provides methods to track both blocking errors and non-blocking warnings.
 */
export declare class ErrorCollector {
    readonly warnings: ErrorCollector.ValidationWarning[];
    readonly errors: ErrorCollector.ValidationError[];
    /**
     * An error will block parsing
     * @param error
     */
    error(error: ErrorCollector.ValidationError): void;
    /**
     * A warning will not block parsing
     */
    warning(warning: ErrorCollector.ValidationWarning): void;
}
//# sourceMappingURL=ErrorCollector.d.ts.map