import { AnyEntry } from "./entry.js"; import { OptimisticWrapOptions } from "./index.js"; import { Unsubscribable } from "./helpers.js"; type EntryMethodName = keyof typeof EntryMethods; declare const EntryMethods: { setDirty: boolean; dispose: boolean; forget: boolean; }; export type OptimisticDependencyFunction = ((key: TKey) => void) & { dirty: (key: TKey, entryMethodName?: EntryMethodName) => void; }; export type Dep = Set & { subscribe: OptimisticWrapOptions<[TKey]>["subscribe"]; } & Unsubscribable; export declare function dep(options?: { subscribe: Dep["subscribe"]; }): OptimisticDependencyFunction; export {};