import { AsyncHandler } from './AsyncHandler'; import type { ErrorFactory } from './ErrorFactory'; /** * Utility handler that always throws an error. * If `onlyHandle` is set to `true` (default), this handler will accept all input, * if set to `false`, it will also throw on any `canHandle` call. * * If no {@link ErrorFactory} is provided, a standard error will be thrown. */ export declare class StaticThrowHandler extends AsyncHandler { protected readonly onlyHandle: boolean; protected readonly message?: string; protected readonly factory?: ErrorFactory; constructor(onlyHandle?: boolean, message?: string, factory?: ErrorFactory); canHandle(): Promise; handle(): Promise; }