UNPKG

@yoroi/resolver

Version:
42 lines (40 loc) 992 B
/** * Flowtype definitions for api * Generated by Flowgen from a Typescript Definition * Flowgen v1.21.0 */ import { Resolver } from "@yoroi/types"; import { handleApiGetCryptoAddress } from "./handle/api"; import { unstoppableApiGetCryptoAddress } from "./unstoppable/api"; import { cnsCryptoAddress } from "./cns/api"; import { WasmModuleProxy } from "@emurgo/cross-csl-core"; declare type ApiConfig = { [typeof Resolver.NameServer.Unstoppable]: { apiKey: string, ... }, ... }; declare export var resolverApiMaker: ( x: { apiConfig: $ReadOnly<ApiConfig>, cslFactory: (scope: string) => WasmModuleProxy, isMainnet?: boolean | void, ... }, x?: { unstoppableApi: { getCryptoAddress: typeof unstoppableApiGetCryptoAddress, ... }, handleApi: { getCryptoAddress: typeof handleApiGetCryptoAddress, ... }, cnsApi: { getCryptoAddress: typeof cnsCryptoAddress, ... }, ... } ) => Resolver.Api;