import * as t from 'io-ts'; import { Deposit, Order, DepositMethod, SettleMethod, Quote } from './entities'; export declare type GetDepositResponse = Deposit; export declare type GetQuoteResponse = Quote; export declare type GetOrderResponse = Order & { deposits: Omit[]; }; export declare type CreateOrderResponse = GetOrderResponse; export declare type RequestQuoteResponse = GetQuoteResponse; export declare const createOrderInputDecoder: t.TypeC<{ depositMethodId: t.UnionC<[t.StringC, t.UndefinedC, t.NullC]>; settleMethodId: t.UnionC<[t.StringC, t.UndefinedC, t.NullC]>; settleAddress: t.StringC; /** * @deprecated Create a quote and supply `quoteId` */ depositAmount: t.UnionC<[t.StringC, t.UndefinedC, t.NullC]>; /** * @deprecated Create a quote and supply `quoteId` */ amount: t.UnionC<[t.StringC, t.UndefinedC, t.NullC]>; affiliateId: t.UnionC<[t.StringC, t.UndefinedC, t.NullC]>; refundAddress: t.UnionC<[t.StringC, t.UndefinedC, t.NullC]>; sessionSecret: t.UnionC<[t.StringC, t.UndefinedC, t.NullC]>; type: t.UnionC<[t.LiteralC<"variable">, t.LiteralC<"fixed">, t.UndefinedC, t.NullC]>; /** * The id of the quote to base this order on */ quoteId: t.UnionC<[t.StringC, t.UndefinedC, t.NullC]>; }>; export declare type CreateOrderInput = Pick, 'depositMethodId' | 'settleAddress' | 'settleMethodId'> & Partial, 'depositMethodId' | 'settleAddress' | 'settleMethodId'>>; export declare const createQuoteInputDecoder: t.TypeC<{ depositMethod: t.StringC; settleMethod: t.StringC; depositAmount: t.UnionC<[t.StringC, t.UndefinedC, t.NullC]>; settleAmount: t.UnionC<[t.StringC, t.UndefinedC, t.NullC]>; }>; export declare type CreateQuoteInput = t.TypeOf; export declare type GetFactsResponse = { assets: { [assetId: string]: { id: string; name: string; }; }; depositMethods: { [depositMethodId: string]: DepositMethod; }; settleMethods: { [settleMethodId: string]: SettleMethod; }; }; export declare type GetPairResponse = { rate: string | null; min: string | null; max: string | null; }; export declare const setRefundAddressInputDecoder: t.TypeC<{ orderId: t.StringC; address: t.StringC; memo: t.UnionC<[t.StringC, t.UndefinedC]>; }>; //# sourceMappingURL=rest.d.ts.map