import { AuthApiTransports } from "../../shared/transports.js"; import { PolyesterMutationOptions, PolyesterRequestOptions } from "../../shared/request-options.js"; import { SubaccountResolver } from "../subaccount-resolver.js"; import { SdkScales } from "../../shared/decimal-surface.js"; import { CreateInternalTransferInput, CreateInternalTransferResult, GetInternalTransferInput, GetInternalTransferResult } from "./internal-transfers.schemas.js"; //#region src/services/internal-transfers/internal-transfers.d.ts /** * Creates and reads authenticated Trading-to-Trading internal transfer requests. */ declare class InternalTransfersService { #private; constructor(transports: AuthApiTransports, resolver: SubaccountResolver | undefined, scales: SdkScales); /** * Creates or returns an idempotent internal transfer from the resolved source account to a destination root account, subaccount, or smart-account address. The request carries asset id, a decimal quantity, and a stable idempotency key; the response includes request/transfer ids, the lifecycle `flowId`, resolved destination, and status. Rejections and failures, such as insufficient funds or a missing step-up, raise errors instead of returning a result. */ create(input: CreateInternalTransferInput, options?: PolyesterMutationOptions): Promise; /** * Reads an accepted transfer of the resolved source account by exactly one of `requestId` or * `transferId`, and returns both IDs, the lifecycle `flowId` and the acceptance time. Use it * to reconcile a transfer without resubmitting it; pass `flowId` to `lifecycle.getFlow`, * whose ledger settlement step carries the transfer ID. An unknown, pending or inaccessible * transfer is a `ResourceNotFoundError`, including briefly after a delegate is granted access. * Session JWT only; API keys are refused. Moves no money and needs no step-up. */ get(input: GetInternalTransferInput, options?: PolyesterRequestOptions): Promise; } //#endregion export { InternalTransfersService }; //# sourceMappingURL=internal-transfers.d.ts.map