import { IApiClient } from '../utils/api-client/interfaces'; export type RequestHeaders = { [key: string]: string; }; export type RequestBody = { [key: string]: any; }; export declare enum OAuth2ConnectMode { POPUP = "popup", NEW_TAB = "new-tab", REDIRECT = "redirect" } export type AccessTokenAndRefreshToken = { accessToken: string; refreshToken: string; }; export declare enum Network { BKC_MAINNET = "BKC_MAINNET", BKC_TESTNET = "BKC_TESTNET" } export type BitkubNextUserInfo = { id: string; clientId: string; username: string; email: string; phone: string; status: string; walletAddress: string; nextKycLevel: number; nextKybLevel: number; }; export type GetWithAccessToken = (apiClient: IApiClient, url: string, clientId: string, accessToken: string, headers?: RequestHeaders) => Promise; export type PostWithAccessToken = (apiClient: IApiClient, url: string, clientId: string, accessToken: string, headers?: RequestHeaders, body?: RequestBody) => Promise; export declare enum TransactionStatus { PENDING = "PENDING", COMPLETE = "COMPLETE", FAILED = "FAILED" } export type TransactionResponse = { id: string; hash: string; gasUsed?: number; blockHash?: string; blockNumber?: number; timestamp?: number; confirmations: number; messages?: string; raw?: string; status: TransactionStatus; createdTime: string; updatedTime: string; }; export declare enum TransactionOrder { LATEST_ASC = "latest.asc", LATEST_DESC = "latest.desc" } export declare enum ContractParameterType { BACKEND = "BACKEND", REQUEST = "REQUEST" } export declare enum ContractParameterValueToReplaceType { ACCESS_TOKEN = "ACCESS_TOKEN" } export type ContractParameter = { index: number; name: string; type: ContractParameterType; valueReplaced?: ContractParameterValueToReplaceType; }; export type ContractMethod = { function: string; name: string; parameters: ContractParameter[]; }; export declare enum ContractType { KAP20 = "KAP20", KAP721 = "KAP721", LOGIC = "LOGIC" } export type ContractInfo = { id: string; projectId: string; name: string; address: string; type: ContractType; chainId: number; methods: ContractMethod[]; createdTime: string; updatedTime: string; }; export type ContractResponse = ContractInfo;