UNPKG

@yoroi/swap

Version:
62 lines (59 loc) 2.25 kB
/** * Flowtype definitions for getSwapConfig * Generated by Flowgen from a Typescript Definition * Flowgen v1.21.0 */ import { FetchData } from '@yoroi/common'; import { z } from 'zod'; declare type SwapConfig = z.infer<typeof SwapConfigResponseSchema>;declare type Options = { request: FetchData,... };declare export var getSwapConfigApiMaker: (x?: Options) => () => Promise<SwapConfig>;declare var SwapConfigResponseSchema: z.ZodObject<{ initialPair: z.ZodOptional<z.ZodObject<{ tokenIn: z.ZodEffects<z.ZodString, undefined: /* NO PRINT IMPLEMENTED: TemplateLiteralType */ any, string>, tokenOut: z.ZodEffects<z.ZodString, undefined: /* NO PRINT IMPLEMENTED: TemplateLiteralType */ any, string>,... }, "strip", z.ZodTypeAny, { tokenIn: undefined: /* NO PRINT IMPLEMENTED: TemplateLiteralType */ any, tokenOut: undefined: /* NO PRINT IMPLEMENTED: TemplateLiteralType */ any,... }, { tokenIn: string, tokenOut: string,... }>>, verifiedTokens: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, undefined: /* NO PRINT IMPLEMENTED: TemplateLiteralType */ any, string>, "many">>, excludedTokens: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, undefined: /* NO PRINT IMPLEMENTED: TemplateLiteralType */ any, string>, "many">>, partners: z.ZodOptional<z.ZodObject<{ dexhunter: z.ZodOptional<z.ZodString>, muesliswap: z.ZodOptional<z.ZodString>,... }, "strip", z.ZodTypeAny, { dexhunter?: string | void, muesliswap?: string | void,... }, { dexhunter?: string | void, muesliswap?: string | void,... }>>,... }, "strip", z.ZodTypeAny, { partners?: { dexhunter?: string | void, muesliswap?: string | void,... } | void, initialPair?: { tokenIn: undefined: /* NO PRINT IMPLEMENTED: TemplateLiteralType */ any, tokenOut: undefined: /* NO PRINT IMPLEMENTED: TemplateLiteralType */ any,... } | void, verifiedTokens?: undefined: /* NO PRINT IMPLEMENTED: TemplateLiteralType */ any[] | void, excludedTokens?: undefined: /* NO PRINT IMPLEMENTED: TemplateLiteralType */ any[] | void,... }, { partners?: { dexhunter?: string | void, muesliswap?: string | void,... } | void, initialPair?: { tokenIn: string, tokenOut: string,... } | void, verifiedTokens?: string[] | void, excludedTokens?: string[] | void,... }>;