/** * Lazy-mode `count()` support (#706): count ids whose envelope is LIVE at * tier 0 — parity with eager count (the hydrated cache excludes tombstones, * delete markers, and elevated records, #701). Envelope inspection only — * no record body is ever decrypted here. * * #713: when the adapter implements the optional `listPage`, page through * it and apply the same predicate to each page's envelopes — one * round-trip per page instead of one `list()` + one `get()` per id. Stores * without `listPage` keep the original N+1 loop. */ import type { NoydbStore } from './types.js'; export declare function countLiveEnvelopes(adapter: NoydbStore, vault: string, name: string, storeCiphertext: boolean): Promise;