import { AsyncHandler } from './AsyncHandler'; /** * A composite handler that returns true if any of its handlers can handle the input and return true. * Handler errors are interpreted as false results. */ export declare class BooleanHandler extends AsyncHandler { protected readonly logger: import("global-logger-factory").Logger; protected readonly handlers: AsyncHandler[]; /** * Creates a new BooleanHandler that stores the given handlers. * * @param handlers - Handlers over which it will run. */ constructor(handlers: AsyncHandler[]); canHandle(input: TIn): Promise; handleSafe(input: TIn): Promise; handle(input: TIn): Promise; } /** * A function that simulates the Array.some behaviour but on an array of Promises. * Returns true if at least one promise returns true. * Returns false if all promises return false or error. * * @remarks * * Predicates provided as input must be implemented considering * the following points: * 1. if they throw an error, it won't be propagated; * 2. throwing an error should be logically equivalent to returning false. */ export declare function promiseSome(predicates: Promise[]): Promise;