import type { AddressPointer, EventPointer } from "nostr-tools/nip19"; import { Address } from "./Address.js"; import type { Filter } from "./Filters.js"; import type { RelaySelection } from "./RelaySelection.js"; import type { TrustedEvent } from "./Events.js"; export type IEventRef = { id?: string; pubkey?: string; kind?: number; identifier?: string; relays?: string[]; }; export declare class EventRef implements IEventRef { readonly id?: string; readonly pubkey?: string; readonly kind?: number; readonly identifier?: string; readonly relays: string[]; constructor({ id, pubkey, kind, identifier, relays }: IEventRef); static fromEvent(event: TrustedEvent, relays?: string[]): EventRef; static fromPointer(pointer: EventPointer | AddressPointer): EventRef; static fromAddress({ kind, pubkey, identifier, relays }: Address): EventRef; static fromString(idOrAddress: string, relays?: string[]): EventRef; static merge(a: IEventRef, b: IEventRef): EventRef; static fromNip19(entity: string): EventRef | undefined; getAddress: () => Address | undefined; getIdOrAddress: () => string | undefined; getAddressOrId: () => string | undefined; getIdAndAddress: () => string[]; getFilters: () => Filter[]; getRelaySelections: () => RelaySelection[]; toNip19: () => `nevent1${string}` | `naddr1${string}` | undefined; } //# sourceMappingURL=EventRef.d.ts.map