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 UnwrappedEvent = HashedEvent & { wrap: SignedEvent; }; export type TrustedEvent = HashedEvent & { sig?: string; wrap?: SignedEvent; [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 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 isUnwrappedEvent: (e: TrustedEvent) => e is UnwrappedEvent; export declare const isTrustedEvent: (e: TrustedEvent) => e is TrustedEvent; 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 asUnwrappedEvent: (e: UnwrappedEvent) => UnwrappedEvent; export declare const asTrustedEvent: (e: TrustedEvent) => TrustedEvent; 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; export declare const getAncestorTags: ({ kind, tags }: EventTemplate) => { roots: string[][]; replies: string[][]; }; export declare const getAncestors: ({ kind, tags }: EventTemplate) => Record; export declare const getParentIdsAndAddrs: (event: EventTemplate) => string[]; export declare const getParentIdOrAddr: (event: EventTemplate) => string | undefined; export declare const getParentIds: (event: EventTemplate) => string[]; export declare const getParentId: (event: EventTemplate) => string | undefined; export declare const getParentAddrs: (event: EventTemplate) => string[]; export declare const getParentAddr: (event: EventTemplate) => string | undefined; export declare const isChildOf: (child: EventTemplate, parent: HashedEvent) => boolean; //# sourceMappingURL=Events.d.ts.map