import * as t from 'io-ts'; export declare const PaymentStatus: t.UnionC<[t.LiteralC<"in_flight">, t.LiteralC<"settled">, t.LiteralC<"failed">]>; export type PaymentStatus = t.TypeOf; export declare const PAYMENT_FAILURE_TIMEOUT = "TIMEOUT"; export declare const PAYMENT_FAILURE_NO_ROUTE = "NO_ROUTE"; /** A non-recoverable error */ export declare const PAYMENT_FAILURE_ERROR = "ERROR"; export declare const PAYMENT_FAILURE_INCORRECT_DETAILS = "INCORRECT_PAYMENT_DETAILS"; /** Insufficient channel outbound capacity */ export declare const PAYMENT_FAILURE_INSUFFICIENT_CHANNEL_BALANCE = "INSUFFICIENT_BALANCE"; /** Insufficient custodial lightning balance for the customer's wallet */ export declare const PAYMENT_FAILURE_INSUFFICIENT_WALLET_BALANCE = "INSUFFICIENT_WALLET_BALANCE"; /** Excess custodial lightning balance for the customer's wallet */ export declare const PAYMENT_FAILURE_EXCESS_WALLET_BALANCE = "EXCESS_WALLET_BALANCE"; export declare const PAYMENT_FAILURE_INVOICE_EXPIRED = "INVOICE_EXPIRED"; export declare const PAYMENT_FAILURE_PAYMENT_ALREADY_SETTLED = "PAYMENT_ALREADY_SETTLED"; export declare const PAYMENT_FAILURE_PAYMENT_ALREADY_IN_FLIGHT = "PAYMENT_ALREADY_IN_FLIGHT"; export declare const PAYMENT_FAILURE_TRANSIENT_ERROR_RETRY_LATER = "TRANSIENT_ERROR_RETRY_LATER"; export declare const PAYMENT_FAILURE_CANCELED = "CANCELED"; export declare const PAYMENT_FAILURE_FORCE_FAILED = "FORCE_FAILED"; export declare const PaymentFailureReason: t.UnionC<[t.LiteralC<"TIMEOUT">, t.LiteralC<"NO_ROUTE">, t.LiteralC<"ERROR">, t.LiteralC<"INCORRECT_PAYMENT_DETAILS">, t.LiteralC<"INSUFFICIENT_BALANCE">, t.LiteralC<"INSUFFICIENT_WALLET_BALANCE">, t.LiteralC<"EXCESS_WALLET_BALANCE">, t.LiteralC<"INVOICE_EXPIRED">, t.LiteralC<"PAYMENT_ALREADY_SETTLED">, t.LiteralC<"PAYMENT_ALREADY_IN_FLIGHT">, t.LiteralC<"TRANSIENT_ERROR_RETRY_LATER">, t.LiteralC<"CANCELED">, t.LiteralC<"FORCE_FAILED">]>; export type PaymentFailureReason = t.TypeOf; /** * Off-chain payment information */ export declare const PaymentInfo: t.IntersectionC<[t.TypeC<{ id: t.StringC; paymentHash: t.StringC; walletId: t.StringC; txRequestId: t.StringC; status: t.UnionC<[t.LiteralC<"in_flight">, t.LiteralC<"settled">, t.LiteralC<"failed">]>; invoice: t.StringC; feeLimitMsat: import("io-ts-types/BigIntFromString").BigIntFromStringC; destination: t.StringC; updatedAt: import("io-ts-types/DateFromISOString").DateFromISOStringC; createdAt: import("io-ts-types/DateFromISOString").DateFromISOStringC; amountMsat: import("io-ts-types/BigIntFromString").BigIntFromStringC; }>, t.PartialC<{ feeMsat: import("io-ts-types/BigIntFromString").BigIntFromStringC; failureReason: t.UnionC<[t.LiteralC<"TIMEOUT">, t.LiteralC<"NO_ROUTE">, t.LiteralC<"ERROR">, t.LiteralC<"INCORRECT_PAYMENT_DETAILS">, t.LiteralC<"INSUFFICIENT_BALANCE">, t.LiteralC<"INSUFFICIENT_WALLET_BALANCE">, t.LiteralC<"EXCESS_WALLET_BALANCE">, t.LiteralC<"INVOICE_EXPIRED">, t.LiteralC<"PAYMENT_ALREADY_SETTLED">, t.LiteralC<"PAYMENT_ALREADY_IN_FLIGHT">, t.LiteralC<"TRANSIENT_ERROR_RETRY_LATER">, t.LiteralC<"CANCELED">, t.LiteralC<"FORCE_FAILED">]>; paymentPreimage: t.StringC; }>]>; export type PaymentInfo = t.TypeOf; export declare const ListPaymentsResponse: t.IntersectionC<[t.TypeC<{ payments: t.ArrayC, t.LiteralC<"settled">, t.LiteralC<"failed">]>; invoice: t.StringC; feeLimitMsat: import("io-ts-types/BigIntFromString").BigIntFromStringC; destination: t.StringC; updatedAt: import("io-ts-types/DateFromISOString").DateFromISOStringC; createdAt: import("io-ts-types/DateFromISOString").DateFromISOStringC; amountMsat: import("io-ts-types/BigIntFromString").BigIntFromStringC; }>, t.PartialC<{ feeMsat: import("io-ts-types/BigIntFromString").BigIntFromStringC; failureReason: t.UnionC<[t.LiteralC<"TIMEOUT">, t.LiteralC<"NO_ROUTE">, t.LiteralC<"ERROR">, t.LiteralC<"INCORRECT_PAYMENT_DETAILS">, t.LiteralC<"INSUFFICIENT_BALANCE">, t.LiteralC<"INSUFFICIENT_WALLET_BALANCE">, t.LiteralC<"EXCESS_WALLET_BALANCE">, t.LiteralC<"INVOICE_EXPIRED">, t.LiteralC<"PAYMENT_ALREADY_SETTLED">, t.LiteralC<"PAYMENT_ALREADY_IN_FLIGHT">, t.LiteralC<"TRANSIENT_ERROR_RETRY_LATER">, t.LiteralC<"CANCELED">, t.LiteralC<"FORCE_FAILED">]>; paymentPreimage: t.StringC; }>]>>; }>, t.PartialC<{ /** * This is the paymentId of the last Payment in the last iteration. * Providing this value as the prevId in the next request will return the next batch of payments. * */ nextBatchPrevId: t.StringC; }>]>; export type ListPaymentsResponse = t.TypeOf; /** * Payment query parameters */ export declare const PaymentQuery: t.PartialC<{ status: t.UnionC<[t.LiteralC<"in_flight">, t.LiteralC<"settled">, t.LiteralC<"failed">]>; limit: import("io-ts-types/BigIntFromString").BigIntFromStringC; startDate: import("io-ts-types/DateFromISOString").DateFromISOStringC; endDate: import("io-ts-types/DateFromISOString").DateFromISOStringC; paymentHash: t.StringC; /** paymentId provided by nextBatchPrevId in the previous list */ prevId: t.StringC; }>; export type PaymentQuery = t.TypeOf; export declare const SubmitPaymentParams: t.IntersectionC<[t.IntersectionC<[t.TypeC<{ invoice: t.StringC; }>, t.PartialC<{ amountMsat: import("io-ts-types/BigIntFromString").BigIntFromStringC; feeLimitMsat: import("io-ts-types/BigIntFromString").BigIntFromStringC; feeLimitRatio: t.NumberC; }>]>, t.TypeC<{ passphrase: t.StringC; }>, t.PartialC<{ sequenceId: t.UnionC<[t.Type, t.UndefinedC]>; comment: t.UnionC<[t.Type, t.UndefinedC]>; }>]>; export type SubmitPaymentParams = t.TypeOf; export declare const LndCreatePaymentResponse: t.IntersectionC<[t.TypeC<{ status: t.UnionC<[t.LiteralC<"in_flight">, t.LiteralC<"settled">, t.LiteralC<"failed">]>; paymentHash: t.StringC; }>, t.PartialC<{ paymentId: t.StringC; paymentPreimage: t.StringC; amountMsat: t.StringC; feeMsat: t.StringC; failureReason: t.UnionC<[t.LiteralC<"TIMEOUT">, t.LiteralC<"NO_ROUTE">, t.LiteralC<"ERROR">, t.LiteralC<"INCORRECT_PAYMENT_DETAILS">, t.LiteralC<"INSUFFICIENT_BALANCE">, t.LiteralC<"INSUFFICIENT_WALLET_BALANCE">, t.LiteralC<"EXCESS_WALLET_BALANCE">, t.LiteralC<"INVOICE_EXPIRED">, t.LiteralC<"PAYMENT_ALREADY_SETTLED">, t.LiteralC<"PAYMENT_ALREADY_IN_FLIGHT">, t.LiteralC<"TRANSIENT_ERROR_RETRY_LATER">, t.LiteralC<"CANCELED">, t.LiteralC<"FORCE_FAILED">]>; }>]>; export type LndCreatePaymentResponse = t.TypeOf; //# sourceMappingURL=payment.d.ts.map