import type { IApi, ICommand, IResource, TApiSnapshot, TCommandOptions, TCreateApiOptions, TProjectionResourceOptions, TResourceOptions } from "../../../query/types/index.js"; export declare class Api implements IApi { private readonly resources; private readonly commands; private readonly resourcesByKey; private readonly keyPrefix; private readonly plugins; private readonly apiSerializeArgs; private readonly apiResourceRetentionTime; private readonly apiCommandRetentionTime; private readonly snapshoter; private readonly apiOnCacheEntryAdded; private readonly apiOnQueryStarted; private readonly apiMapError; private readonly syncer; constructor(options?: TCreateApiOptions); createResource: (opts: TResourceOptions) => IResource; /** * Create a projection resource: a wrapper over an existing resource that fetches * collections of items by ids with per-item cache granularity — only the * ids missing from the shared item cache reach the wrapped resource. */ unstable_createProjectionResource: (opts: TProjectionResourceOptions) => IResource; createCommand: (opts: TCommandOptions) => ICommand; getSnapshot: () => TApiSnapshot; resetAll: () => void; }