import type { Signal } from "./Signal"; /** * Base class for collectors. * * @typeparam THandler The function signature to be implemented by handlers. */ export declare abstract class Collector any> { /** * Publish the bound signal event (call all handlers) to start the collection process. * * @method */ readonly emit: (...args: Parameters) => void; /** * Create a new collector. * * @param signal The signal to emit. */ constructor(signal: Signal); /** * Process the results of a handler invocation. * * @param result true to continue processing handlers. */ abstract handleResult(result: ReturnType): boolean; }