//#region src/index.d.ts /** * BOLT11 Fake Invoice Generator * * Generates fake but spec-compliant BOLT11 invoices for testing purposes. * Based on BOLT #11: Invoice Protocol for Lightning Payments * https://github.com/lightning/bolts/blob/master/11-payment-encoding.md */ type FakeInvoiceOptions = { /** Network prefix: 'bc' for mainnet, 'tb' for testnet, 'bcrt' for regtest. Default: 'bcrt' */ network?: "bc" | "tb" | "bcrt" | "tbs"; /** Description string. Default: 'Test invoice' */ description?: string; /** Expiry in seconds. Default: 3600 (1 hour) */ expiry?: number; /** Payment hash (32 bytes hex). Default: random */ paymentHash?: string; /** Payment secret (32 bytes hex). Default: random */ paymentSecret?: string; /** Timestamp in seconds since epoch. Default: current time */ timestamp?: number; /** Private key for signing (32 bytes hex). Default: random */ privateKey?: string; }; /** * Creates a fake but spec-compliant BOLT11 invoice for testing purposes. * * The generated invoice follows the BOLT11 specification with a valid cryptographic * signature. It can be used for testing melt quote creation and payment flows. * * Note: While the invoice has a valid signature, it cannot actually be paid on a * real Lightning Network since the destination node doesn't exist. * * @param amountSats - Amount in satoshis * @param options - Optional configuration * @returns A BOLT11 encoded invoice string * * @example * ```ts * const invoice = createFakeInvoice(100); * // Returns: lnbcrt1u1p... * ``` */ declare function createFakeInvoice(amountSats: number, options?: FakeInvoiceOptions): string; //#endregion export { FakeInvoiceOptions, createFakeInvoice }; //# sourceMappingURL=index.d.mts.map