import { AbstractSimplePool } from "nostr-tools/lib/types/pool"; import { type NofferReceipt } from "./receipt.js"; export type { NofferReceipt } from "./receipt.js"; export { isNofferReceipt } from "./receipt.js"; export type NofferData = { offer: string; amount_sats?: number; zap?: string; payer_data?: Record; expires_in_seconds?: number; description?: string; }; export declare const validateNofferData: (data: unknown) => NofferData; export type NofferSuccess = { bolt11: string; }; export type NofferError = { code: number; error: string; range?: { min: number; max: number; }; latest?: string; }; export type NofferResponse = NofferSuccess | NofferError; export declare const SendNofferRequest: (pool: AbstractSimplePool, privateKey: Uint8Array, relays: string[], toPubKey: string, data: NofferData, timeoutSeconds?: number, onReceipt?: (receipt: NofferReceipt) => void) => Promise; export declare const newNofferEvent: (content: string, fromPub: string, toPub: string) => { content: string; created_at: number; kind: number; pubkey: string; tags: string[][]; }; export declare const newNofferFilter: (publicKey: string, eventId: string) => { since: number; kinds: number[]; '#p': string[]; '#e': string[]; };