import { MaybePromise } from "../types/utils.js"; //#region src/utils/observe.d.ts type Callback = ((...args: any[]) => any) | undefined; type Callbacks = Record; /** @internal */ declare const listenersCache: Map; /** @internal */ declare const cleanupCache: Map void>; type EmitFunction = (emit: callbacks) => MaybePromise void)>; /** * @description Sets up an observer for a given function. If another function * is set up under the same observer id, the function will only be called once * for both instances of the observer. */ declare function observe(observerId: string, callbacks: callbacks, fn: EmitFunction): () => void; //#endregion export { cleanupCache, listenersCache, observe }; //# sourceMappingURL=observe.d.ts.map