import { APIResource } from "../core/resource.mjs"; import { APIPromise } from "../core/api-promise.mjs"; import { RequestOptions } from "../internal/request-options.mjs"; export declare class LightningAddress extends APIResource { /** * Generate a payment request for a Lightning Address. * * @example * ```ts * await client.lightningAddress.createCharge({ * amount: 'string', * description: 'string', * lnaddress: 'string', * }); * ``` */ createCharge(body?: LightningAddressCreateChargeParams | null | undefined, options?: RequestOptions): APIPromise; /** * Send instant Bitcoin payments to any Lightning Address. * * @example * ```ts * await client.lightningAddress.sendPayment({ * amount: 'string', * callbackUrl: 'string', * comment: 'string', * internalId: 'string', * lnAddress: 'string', * }); * ``` */ sendPayment(body?: LightningAddressSendPaymentParams | null | undefined, options?: RequestOptions): APIPromise; /** * Verify the validity of a Lightning Address. * * @example * ```ts * await client.lightningAddress.validate('address'); * ``` */ validate(address: string, options?: RequestOptions): APIPromise; } export interface LightningAddressCreateChargeParams { /** * The amount for the Charge -> in millisatoshis */ amount?: string; /** * Note or comment of this Charge */ description?: string; /** * The Lightning Address of the intended recipient */ lnaddress?: string; } export interface LightningAddressSendPaymentParams { /** * The amount for the Payment -> in millisatoshis */ amount?: string; /** * The endpoint ZBD will POST Charge updates to */ callbackUrl?: string; /** * Note or description of this Payment */ comment?: string; /** * Open metadata string property */ internalId?: string; /** * The Lightning Address of the intended recipient (e.g. andre@zbd.gg) */ lnAddress?: string; } export declare namespace LightningAddress { export { type LightningAddressCreateChargeParams as LightningAddressCreateChargeParams, type LightningAddressSendPaymentParams as LightningAddressSendPaymentParams, }; } //# sourceMappingURL=lightning-address.d.mts.map