import { type UnsignedEvent } from "nostr-tools"; import { AbstractSimplePool } from "nostr-tools/lib/types/pool"; export type NenrollSuccess = { res: "ok"; noffer: string; ndebit: string; nmanage: string; }; export type NenrollFailure = { res: "GFY"; code: number; error: string; required_difficulty?: number; retry_after?: number; delta?: { max_delta_ms: number; actual_delta_ms: number; }; }; export type NenrollResponse = NenrollSuccess | NenrollFailure; export type NenrollOptions = { /** NIP-13 bits to mine before send. `0` probes. Omit to let the caller pick (beacon or probe). */ difficulty?: number; }; export declare const newNenrollEvent: (content: string, fromPub: string, toPub: string) => UnsignedEvent; export declare const SendNenrollRequest: (pool: AbstractSimplePool, privateKey: Uint8Array, relays: string[], toPubKey: string, difficulty?: number, timeoutSeconds?: number) => Promise;