import { Network } from "./types.js"; export declare const functionCall: (args: { methodName: string; args: any; gas: string; deposit: string; }) => import("@near-js/transactions").Action; export declare const isTon: (id: number) => id is Network.OmniTon | Network.Ton; export declare const isCosmos: (id: number) => boolean; /** * Convert omni id or intent id to native chain token id, example: * 56_11111111111111111111 -> 56:native * nep245:v2_1.omni.hot.tg:56_11111111111111111111 -> 56:native * -4:nep245:v2_1.omni.hot.tg:56_11111111111111111111 -> 56:native */ export declare const fromOmni: (id: string) => string; /** * Convert token id or intent id to omni address format (base58 encoded), example: * 56:native -> 56_11111111111111111111 * nep245:v2_1.omni.hot.tg:56_11111111111111111111 -> 56_11111111111111111111 * -4:nep245:v2_1.omni.hot.tg:56_11111111111111111111 -> 56_11111111111111111111 (format with chainId, Intens has -4 chain id) * nep141:wrap.near -> nep141:wrap.near */ export declare const toOmni: (id: string | number, addr?: string) => string; /** * Convert token id to omni intent id, example: * 56:0x391E7C679d29bD940d63be94AD22A25d25b5A604 -> nep245:v2_1.omni.hot.tg:56_base56encoded * 1010:native -> nep141:wrap.near */ export declare const toOmniIntent: (id: string | number, addr?: string) => string; /** * Convert token address to unified omni address format (base58 encoded) */ export declare const encodeTokenAddress: (chain: Network, addr: string) => string; /** * Convert unified omni address format (base58 encoded) to native chain address format */ export declare const decodeTokenAddress: (chain: Network, addr: string) => string; /** Build ephemeral receiver for OMNI contract, its just a user 'proxy' address to send tokens directly to intents */ export declare const omniEphemeralReceiver: (intentAccount: string) => Buffer; export declare const legacyUnsafeOmniEphemeralReceiver: (intentAccount: string) => Buffer; export declare const encodeReceiver: (chain: Network, address: string) => string; export declare const decodeReceiver: (chain: Network, address: string) => string; export declare class Logger { warn(...args: any[]): void; log(...args: any[]): void; } export declare const toReadableNumber: (decimals: number | bigint, number?: bigint | string) => string; export declare const toNonDivisibleNumber: (decimals: number | bigint, number: string) => string; export declare const bigIntMax: (...args: bigint[]) => bigint; export declare const bigIntMin: (...args: bigint[]) => bigint; export declare const round: (value: number | string, dec?: number) => number; export declare const formatAmount: (n: number | string | bigint, d: number, r?: number) => number; export declare const parseAmount: (n: string | number | bigint, d: number) => string; export declare const wait: (timeout: number) => Promise;