import type { Blockstore } from "interface-blockstore"; export interface PkcBlockstore { blockstore: Blockstore; persistent: boolean; defaultMaxBytes: number; close: () => Promise; } export declare const DEFAULT_BLOCKSTORE_MAX_BYTES: number; export declare const DEFAULT_IN_MEMORY_BLOCKSTORE_MAX_BYTES: number; /** * Browser block storage for the libp2p-js client: blocks in IndexedDB so a refresh does not * re-fetch everything from the network. * * The browser may evict the whole origin under storage pressure, so the store is treated as a * cache that can vanish between sessions rather than as durable state. Nothing we keep here is * unrecoverable: every block is refetchable from the network. * * If IndexedDB is unavailable (private-mode restrictions, a disabled origin, a non-DOM worker * without it) we fall back to memory rather than failing PKC construction: a slower client beats * no client. */ export declare function createBlockstoreForLibp2pJsClient({ dataPath, key }: { dataPath?: string; key: string; }): Promise;