import type { MarkOptional } from 'ts-essentials'; import type { ConstructFetchInput } from './types'; /** * @type hex token or account address */ export declare type Address = string; /** * @type hex token address or token symbol */ export declare type AddressOrSymbol = string; /** * @type number in string form */ export declare type PriceString = string; /** * @type transaction hash */ export declare type TxHash = string; export declare type LendingToken = 'cToken' | 'iToken' | 'aToken' | 'aToken2' | 'idleToken' | 'Chai' | 'bDAI'; export declare type TokenType = 'ETH' | 'ERC20' | 'SYNTH'; /** * @type Token object returned from API used internally in API */ export declare type Token = { address: string; decimals: number; symbol?: string | undefined; tokenType: LendingToken | TokenType; mainConnector: string; connectors: string[]; network: number; img?: string | undefined; allowance?: string | undefined; balance?: string | undefined; }; declare type ConstructTokenInput = MarkOptional; export declare const constructToken: (tokenProps: ConstructTokenInput) => Token; declare type GetTokens = (signal?: AbortSignal) => Promise; export declare type GetTokensFunctions = { getTokens: GetTokens; }; export declare const constructGetTokens: ({ apiURL, network, fetcher, }: ConstructFetchInput) => GetTokensFunctions; export {}; //# sourceMappingURL=token.d.ts.map