import { Event, EventTemplate, UnsignedEvent, VerifiedEvent } from './core.ts'; export declare function serializeEvent(evt: UnsignedEvent): string; export declare function getEventHash(event: UnsignedEvent): string; export declare const generateSecretKey: () => Uint8Array; export declare const getPublicKey: (secretKey: Uint8Array) => string; export declare const finalizeEvent: (t: EventTemplate, secretKey: Uint8Array) => VerifiedEvent; /** * Checks the event `id` and `sig`. * * The result is cached on the event object, and `finalizeEvent()` marks the event as verified. * After that, `verifyEvent()` returns the cached result and does not see changes made to the event. * A `{ ...event }` copy keeps the cached result too. * To check an event again, pass a new object with only the event fields. */ export declare const verifyEvent: (event: Event) => event is VerifiedEvent; export * from './core.ts';