import { Web3Provider } from "@ethersproject/providers";
import { QuoteLoader } from "../helpers/quote-loader";
export declare function cutAddress(address: string, left?: number, right?: number): string;
export declare function tryParseJSON(str: string): any | null;
export declare function renderTemplateString(template: string, values: {
    rate?: string;
    incomeApyRate?: string;
    coverage?: string;
    quote?: string;
    coverageTokenInfo?: {
        decimals: number;
        symbol: string;
    };
    quoteTokenInfo?: {
        decimals: number;
        symbol: string;
    };
    market?: {
        entityList: string[];
        marketId: string;
    };
}): string;
export declare function getNetworkParams(provider: Web3Provider): Promise<{
    account: string;
    network: string;
    lib: Web3Provider;
    chainId: number;
} | null>;
export declare function checkProviderState(provider: Web3Provider, quoteLoader: QuoteLoader): Promise<string | undefined>;
export declare function processErrorMessage(error: string): string;
export declare function getBuyPolicyUrl(baseUrl: string | undefined, marketId: string | undefined, fo?: string, referrer?: string): string;
export declare function getPolicyDetailUrl(baseUrl: string | undefined, policyId: string | undefined): string;
export declare function getMarketUrl(baseUrl: string | undefined, marketId: string | undefined): string;
