import { type SignedAnnouncement, type SignedReceipt } from "@lobstah/protocol"; import { type Event } from "nostr-tools/pure"; import { SimplePool } from "nostr-tools/pool"; export type IngestedAnnouncement = { signed: SignedAnnouncement; receivedFromRelay: string; nostrEventId: string; nostrPubkey: string; }; export type RejectedAnnouncement = { reason: string; relay: string; raw?: Event; }; export type SubscribeOptions = { relays?: ReadonlyArray; quietIdleMs?: number; hardTimeoutMs?: number; pool?: SimplePool; }; export declare const collectAnnouncements: (opts?: SubscribeOptions) => Promise<{ accepted: IngestedAnnouncement[]; rejected: RejectedAnnouncement[]; }>; export type IngestedReceipt = { signed: SignedReceipt; receivedFromRelay: string; nostrEventId: string; nostrPubkey: string; }; export type RejectedReceipt = { reason: string; relay: string; raw?: Event; }; export declare const collectReceipts: (opts?: SubscribeOptions) => Promise<{ accepted: IngestedReceipt[]; rejected: RejectedReceipt[]; }>; //# sourceMappingURL=subscriber.d.ts.map