export declare function LogDispatcher({ initialState, }?: { initialState?: LogDispatcher.State; }): LogDispatcher.Module; export declare namespace LogDispatcher { type Handler = (record: T) => Promise | void; interface Module { /** * Send a record to all handlers * * @param record - the log record to handle */ handle(record: T): void; /** * Add a new handler to the module handlers * * @param handler - the new handler */ addHandler(handler: Handler): void; /** * Remove a handler from the module handlers * * @param handler - the handler to remove */ removeHandler(handler: Handler): void; /** * Return a list of all handlers */ getHandlers(): Array>; /** * Replace all module handlers by `handlers` * * @param handlers - the new handlers */ setHandlers(handlers: Array>): void; } type State = { handlers: ReadonlyArray>; }; const initialState: State; } //# sourceMappingURL=dispatcher.d.ts.map