import { verifiedSymbol } from "nostr-tools/pure"; export { verifiedSymbol }; export type EventContent = { tags: string[][]; content: string; }; export type EventTemplate = EventContent & { kind: number; }; export type StampedEvent = EventTemplate & { created_at: number; }; export type OwnedEvent = StampedEvent & { pubkey: string; }; export type HashedEvent = OwnedEvent & { id: string; }; export type SignedEvent = HashedEvent & { sig: string; [verifiedSymbol]?: boolean; }; export type TrustedEvent = HashedEvent & { sig?: string; [verifiedSymbol]?: boolean; }; export type MakeEventOpts = { content?: string; tags?: string[][]; created_at?: number; }; export declare const makeEvent: (kind: number, { content, tags, created_at }?: MakeEventOpts) => { kind: number; content: string; tags: string[][]; created_at: number; }; export declare const verifyEvent: (event: TrustedEvent) => boolean; export declare const parseVerifiedEvent: (json: string | undefined, kind: number) => SignedEvent | undefined; export declare const isEventTemplate: (e: EventTemplate) => e is EventTemplate; export declare const isStampedEvent: (e: StampedEvent) => e is StampedEvent; export declare const isOwnedEvent: (e: OwnedEvent) => e is OwnedEvent; export declare const isHashedEvent: (e: HashedEvent) => e is HashedEvent; export declare const isSignedEvent: (e: TrustedEvent) => e is SignedEvent; export declare const asEventTemplate: (e: EventTemplate) => EventTemplate; export declare const asStampedEvent: (e: StampedEvent) => StampedEvent; export declare const asOwnedEvent: (e: OwnedEvent) => OwnedEvent; export declare const asHashedEvent: (e: HashedEvent) => HashedEvent; export declare const asSignedEvent: (e: SignedEvent) => SignedEvent; export declare const getIdentifier: (e: EventTemplate) => string | undefined; export declare const getIdOrAddress: (e: HashedEvent) => string; export declare const getIdAndAddress: (e: HashedEvent) => string[]; export declare const deduplicateEvents: (events: TrustedEvent[]) => TrustedEvent[]; export declare const isEphemeral: (e: EventTemplate) => boolean; export declare const isReplaceable: (e: EventTemplate) => boolean; export declare const isPlainReplaceable: (e: EventTemplate) => boolean; export declare const isParameterizedReplaceable: (e: EventTemplate) => boolean; type EventOrder = Pick; export declare const compareEventsAsc: (a: EventOrder, b: EventOrder) => number; export declare const compareEventsDesc: (a: EventOrder, b: EventOrder) => number; export declare const sortEventsAsc: (events: Iterable) => TrustedEvent[]; export declare const sortEventsDesc: (events: Iterable) => TrustedEvent[]; //# sourceMappingURL=Events.d.ts.map