import { AxiosProxyConfig } from 'axios'; import { HttpsProxyAgent } from 'https-proxy-agent'; /** * Returns a random integer value between 0 and (n-1). */ export declare function randomInt(n: number): number; /** * Generate a random clientId. */ export declare function generateRandomClientId(): number; /** * Deterministically generate a valid clientId from an arbitrary string by performing a * quick hashing function on the string. */ export declare function clientIdFromString(input: string): number; /** * Pauses the execution of the program for a specified time. * @param ms - The number of milliseconds to pause the program. * @returns A promise that resolves after the specified number of milliseconds. */ export declare function sleep(ms: number): Promise; /** * Returns a title to use for a gov proposal that adds a new market. * * @param ticker ticker symbol for the new market. * @returns title for the gov proposal. */ export declare function getGovAddNewMarketTitle(ticker: string): string; /** * Returns a summary to use for a gov proposal that adds a new market. * * @param ticker ticker symbol for the new market. * @param delayBlocks number of blocks to wait before activating the market. * @returns summary for the gov proposal. */ export declare function getGovAddNewMarketSummary(ticker: string, delayBlocks: number): string; export declare function calculateClockOffsetFromFetchDateHeader(clientRequestStartTime: number, serverReportedTime: number, clientRequestEndTime: number): number; export declare function getProxyAgent(proxy: AxiosProxyConfig): HttpsProxyAgent; //# sourceMappingURL=utils.d.ts.map