import type { ErrorType } from '../errors/utils.js'; import type { MaybePromise } from '../types/utils.js'; type Callback = ((...args: any[]) => any) | undefined; type Callbacks = Record; export type ObserveErrorType = ErrorType; export declare const listenersCache: Map; export declare const cleanupCache: Map void>; type EmitFunction = (emit: callbacks) => MaybePromise void)>; export declare function observe(observerId: string, callbacks: callbacks, fn: EmitFunction): () => void; export {}; //# sourceMappingURL=observe.d.ts.map