import { HexKey, NostrEvent, UserMetadata } from ".."; export interface MetadataCache extends UserMetadata { /** * When the object was saved in cache */ loaded: number; /** * When the source metadata event was created */ created: number; /** * The pubkey of the owner of this metadata */ pubkey: HexKey; /** * The bech32 encoded pubkey */ npub: string; /** * Pubkey of zapper service */ zapService?: HexKey; /** * If the nip05 is valid for this user */ isNostrAddressValid: boolean; } export declare function mapEventToProfile(ev: NostrEvent): MetadataCache | undefined; export interface CacheStore { preload(): Promise; getFromCache(key?: string): T | undefined; get(key?: string): Promise; bulkGet(keys: Array): Promise>; set(obj: T): Promise; bulkSet(obj: Array): Promise; update(m: TCachedWithCreated): Promise<"new" | "updated" | "refresh" | "no_change">; /** * Loads a list of rows from disk cache * @param keys List of ids to load * @returns Keys that do not exist on disk cache */ buffer(keys: Array): Promise>; clear(): Promise; } //# sourceMappingURL=index.d.ts.map