import { EventEmitter } from "eventemitter3"; import { type EventSigner, type NostrLink, type SystemInterface } from ".."; interface DiffSyncTagsEvents { change(): void; } /** * Add/Remove tags from event */ export declare class DiffSyncTags extends EventEmitter { #private; readonly link: NostrLink; readonly contentEncrypted: boolean; constructor(link: NostrLink, contentEncrypted: boolean); /** * Get the raw storage event */ get value(): { id: string; pubkey: string; created_at: number; kind: number; tags: Array>; content: string; sig: string; } | undefined; /** * Get the current tag set */ get tags(): string[][]; /** * Get decrypted content */ get encryptedTags(): string[][]; /** * Add a tag */ add(tag: Array | Array>, encrypted?: boolean): void; /** * Remove a tag */ remove(tag: Array | Array>, encrypted?: boolean): void; /** * Update a tag (remove+add) */ update(tag: Array | Array>, encrypted?: boolean): void; /** * Replace all the tags */ replace(tag: Array>, encrypted?: boolean): void; sync(signer: EventSigner | undefined, system: SystemInterface): Promise; /** * Apply changes and save */ persist(signer: EventSigner, system: SystemInterface, content?: string): Promise; } export {}; //# sourceMappingURL=diff-sync.d.ts.map