import { APIResource } from "../core/resource.mjs"; import * as TransferInAPI from "./transfer-in.mjs"; import { APIPromise } from "../core/api-promise.mjs"; import { RequestOptions } from "../internal/request-options.mjs"; /** * Endpoints for transferring funds between internal and external accounts with the same currency */ export declare class TransferOut extends APIResource { /** * Transfer funds from an internal account to an external account for a specific * customer. * * @example * ```ts * const transaction = await client.transferOut.create({ * destination: { * accountId: * 'ExternalAccount:e85dcbd6-dced-4ec4-b756-3c3a9ea3d965', * }, * source: { * accountId: * 'InternalAccount:a12dcbd6-dced-4ec4-b756-3c3a9ea3d123', * }, * amount: 12550, * }); * ``` */ create(params: TransferOutCreateParams, options?: RequestOptions): APIPromise; } export interface TransferOutCreateParams { /** * Body param: Destination external account details */ destination: TransferInAPI.ExternalAccountReference; /** * Body param: Source internal account details */ source: TransferInAPI.InternalAccountReference; /** * Body param: Amount in the smallest unit of the currency (e.g., cents for * USD/EUR, satoshis for BTC) */ amount?: number; /** * Header param: A unique identifier for the request. If the same key is sent * multiple times, the server will return the same response as the first request. */ 'Idempotency-Key'?: string; } export declare namespace TransferOut { export { type TransferOutCreateParams as TransferOutCreateParams }; } //# sourceMappingURL=transfer-out.d.mts.map