import type { ErrorHandler } from './types/parser.js'; /** * Sentinel returned by {@link invokeErrorHandler} when the error should be rethrown, either because * no errorHandler was provided, the error wasn't a {@link ParseError}, or the errorHandler itself * returned `undefined`. */ declare const NO_RECOVERY: unique symbol; /** * Invoke the customer-provided errorHandler, if any, for a parse failure. * * Returns {@link NO_RECOVERY} when the caller should rethrow the original error, or the * errorHandler's return value when it should be used to recover instead. */ declare function invokeErrorHandler(errorHandler: ErrorHandler | undefined, error: unknown, event: unknown): TErrorHandlerReturn | typeof NO_RECOVERY; export { invokeErrorHandler, NO_RECOVERY }; //# sourceMappingURL=errorHandler.d.ts.map