import { NostrEvent } from './pure.ts'; import * as nip59 from './nip59.ts'; type Recipient = { publicKey: string; relayUrl?: string; }; type ReplyTo = { eventId: string; relayUrl?: string; }; /** * Builds and gift-wraps a kind-14 private direct message. * * Pass `createdAt` to reuse the rumor timestamp across retries. Since the rumor * id is derived from it, a retry with the same arguments produces the same id * and can be deduplicated by receivers. For full control over an existing rumor, * use `nip59.createRumor`, `nip59.createSeal` and `nip59.createWrap`. */ export declare function wrapEvent(senderPrivateKey: Uint8Array, recipient: Recipient, message: string, conversationTitle?: string, replyTo?: ReplyTo, createdAt?: number): NostrEvent; /** * Builds and gift-wraps a kind-14 private direct message for the sender and * every recipient. All copies share the same rumor `created_at`, so passing * `createdAt` also makes retries reproduce the same ids. */ export declare function wrapManyEvents(senderPrivateKey: Uint8Array, recipients: Recipient[], message: string, conversationTitle?: string, replyTo?: ReplyTo, createdAt?: number): NostrEvent[]; export declare const unwrapEvent: typeof nip59.unwrapEvent; export declare const unwrapManyEvents: typeof nip59.unwrapManyEvents; export {};