import { AbstractSimplePool } from "nostr-tools/lib/types/pool"; import { Event } from "nostr-tools"; export type ClinkBeaconFees = { serviceFeeFloor: number; serviceFeeBps: number; }; export type ClinkBeaconContent = { name?: string; avatarUrl?: string; website?: string; description?: string; relays?: string[]; fees?: ClinkBeaconFees; enroll_difficulty?: number; supported_kinds?: number[]; }; export type ClinkBeacon = { pubkey: string; created_at: number; operator?: string; content: ClinkBeaconContent; }; export declare const parseClinkBeaconContent: (raw: unknown) => ClinkBeaconContent; export declare const parseClinkBeaconEvent: (event: Event) => ClinkBeacon | null; export declare const beaconIsFresh: (beacon: ClinkBeacon, nowMs?: number) => boolean; export declare const enrollDifficultyFromBeacon: (beacon: ClinkBeacon | null, nowMs?: number) => number | undefined; export declare const FetchClinkBeacon: (pool: AbstractSimplePool, relays: string[], servicePub: string, timeoutSeconds?: number) => Promise;