import { type UnsignedEvent, type Event } from './pure.ts'; /** Get POW difficulty from a Nostr hex ID. */ export declare function getPow(hex: string): number; export type MinePowOptions = { /** * By default the miner refreshes `created_at` to the current second while it works and restarts the * nonce whenever the second changes, so a long mining run still yields a fresh timestamp. Set this * to `true` to leave `created_at` exactly as given. NIP-59 gift wraps and seals must carry a * randomized timestamp (up to two days in the past), and any other caller that has already chosen a * `created_at` needs it to survive mining. */ keepCreatedAt?: boolean; }; /** * Mine an event with the desired POW. This function mutates the event. * Note that this operation is synchronous and should be run in a worker context to avoid blocking the main thread. */ export declare function minePow(unsigned: UnsignedEvent, difficulty: number, options?: MinePowOptions): Omit;