/**
 * Convert a null terminated phrase stored inside an array buffer to a string
 *
 * @param arrayBuffer input array buffer
 * @param index the index at which the phrase is stored
 * @return retrieved string
 */
export declare function arrayBufferToStringAtIndex(arrayBuffer: Uint8Array, index: number): string;
/**
 * Decode a base64 string and stored it in a Uint8Array array
 *
 * @param base64String input base64 string
 * @return decoded array
 */
export declare function base64ToUint8Array(base64String: string): Uint8Array;
/**
 * Convert a string header to JS object
 *
 * @param stringHeader input string in json format
 * @return retrieved object
 */
export declare function stringHeaderToObject(stringHeader: string): Record<string, string>;
/**
 * A wrapper to fetch that also supports timeout
 *
 * @param uri the URL of the resource
 * @param options other options related to fetch
 * @param time timeout value
 * @return received response
 */
export declare function fetchWithTimeout(uri: string, options?: {}, time?: number): Promise<Response>;
/**
 * Environment identifier
 *
 * @return a string containing the envirorment name
 */
export declare function getRuntimeEnvironment(): 'browser' | 'worker';
/**
 * Checking whether the given AccessKey is valid
 *
 * @return true if the AccessKey is valid, false if not
 */
export declare function isAccessKeyValid(accessKey: string): boolean;
//# sourceMappingURL=utils.d.ts.map