import { APIResource } from "../core/resource.mjs"; import { APIPromise } from "../core/api-promise.mjs"; import { RequestOptions } from "../internal/request-options.mjs"; export declare class LightningCharges extends APIResource { /** * Start receiving instant Bitcoin payments through the ZBD API. * * @example * ```ts * await client.lightningCharges.create({ * amount: 'string', * callbackUrl: 'string', * description: 'string', * expiresIn: NaN, * internalId: 'string', * }); * ``` */ create(body?: LightningChargeCreateParams | null | undefined, options?: RequestOptions): APIPromise; /** * Retrieve all data about a single Charge. * * @example * ```ts * await client.lightningCharges.retrieve('id'); * ``` */ retrieve(id: string, options?: RequestOptions): APIPromise; } export interface LightningChargeCreateParams { /** * The amount for the Charge -> in millisatoshis */ amount?: string; /** * The endpoint ZBD will POST Charge updates to */ callbackUrl?: string; /** * Note or comment for this Charge (visible to payer) */ description?: string; /** * Time until Charge expiration -> in seconds */ expiresIn?: number; /** * Open metadata string property */ internalId?: string; } export declare namespace LightningCharges { export { type LightningChargeCreateParams as LightningChargeCreateParams }; } //# sourceMappingURL=lightning-charges.d.mts.map