import type { SignedAnnouncement, SignedReceipt } from "@lobstah/protocol"; import { type Event } from "nostr-tools/pure"; import { SimplePool } from "nostr-tools/pool"; export type PublishResult = { eventId: string; acceptedBy: string[]; rejectedBy: { relay: string; reason: string; }[]; }; export type PublishOptions = { relays?: ReadonlyArray; pool?: SimplePool; }; export declare const buildAnnouncementEvent: (signed: SignedAnnouncement, nostrSecretKey: Uint8Array) => Event; export declare const publishAnnouncement: (signed: SignedAnnouncement, nostrSecretKey: Uint8Array, opts?: PublishOptions) => Promise; export declare const unpublishAnnouncement: (eventIdToDelete: string, nostrSecretKey: Uint8Array, opts?: PublishOptions) => Promise; export declare const buildReceiptEvent: (signed: SignedReceipt, nostrSecretKey: Uint8Array) => Event; export declare const publishReceipt: (signed: SignedReceipt, nostrSecretKey: Uint8Array, opts?: PublishOptions) => Promise; //# sourceMappingURL=publisher.d.ts.map