import { type EventSigner, type NostrEvent, type NostrLink, type NotSignedNostrEvent, type SystemInterface } from ".."; /** * Safely sync replacable events to nostr * * Usefule for the following critical kinds: * 0 (Metadata) * 3 (Contacts) * 10002 (Relays) * 30078 (AppData) */ export declare class SafeSync { #private; readonly link: NostrLink; constructor(link: NostrLink); /** * Return a copy of the internal value */ get value(): { id: string; pubkey: string; created_at: number; kind: number; tags: Array>; content: string; sig: string; } | undefined; get didSync(): boolean; /** * Fetch the latest version */ sync(system: SystemInterface): Promise; /** * Set the base value * @param ev */ setBase(ev: NostrEvent): void; /** * Publish an update for this event * * Event will be signed again inside * @param ev */ update(next: NostrEvent | NotSignedNostrEvent, signer: EventSigner, system: SystemInterface, mustExist?: boolean): Promise; } //# sourceMappingURL=safe-sync.d.ts.map