import { Result } from "@adviser/cement"; import { type ResPutDoc, type ResGetDoc, type ResGetDocNotFound, type ResQueryDocs, type ResDeleteDoc, type ResSubscribeDocs, type ResSyncPull, type ResSyncPush, type ReqSyncPush, type VibesDiyError, type QueryFilter } from "@vibes.diy/api-types"; import { type DbAcl, type ResSetDbAcl } from "@vibes.diy/vibe-types"; import type { VibesDiyApi } from "./index.js"; export declare class FireflyApiAdapter { readonly svc: { readonly vibeApp: { ownerHandle: string; appSlug: string; fsId: string; }; }; private readonly apiArg; private readonly apiOnce; private readonly ownerHandleOverride; private readonly ownerHandleOnce; private readonly adminMode; private readonly actingHandle; private readonly openDbNames; private readonly grantsChangedListeners; private grantReactivityInstalled; private grantReactivityInstalling; private reconnectRetryArmed; constructor(api: VibesDiyApi | (() => Promise), appSlug: string, opts?: { ownerHandle?: string; adminMode?: boolean; actingHandle?: string; }); private getApi; resolveOwnerHandle(): Promise; putDoc(doc: Record, docId?: string, dbName?: string): Promise>; getDoc(docId: string, dbName?: string): Promise>; queryDocs(dbName?: string, filter?: QueryFilter, pager?: { limit?: number; after?: string; }): Promise>; deleteDoc(docId: string, dbName?: string): Promise>; broadcastEphemeral(docId: string, doc: Record, dbName?: string): void; subscribeDocs(dbName?: string): Promise>; syncPull(cursors: Record, dbName?: string): Promise>; syncPush(writes: ReqSyncPush["writes"], dbName?: string): Promise>; enableGrantReactivity(): Promise; private installGrantReactivity; private armReconnectRetry; onGrantsChanged(fn: (evt: { ownerHandle: string; appSlug: string; }) => void): () => void; setDbAcl(_dbName: string, _acl: DbAcl): Promise>; putAsset(_blob: Blob, _mimeType?: string): Promise>; onMsg(fn: (event: { data: unknown; }) => void): void; }