import { SignClientTypes, RelayerClientMetadata, EngineTypes, RelayerTypes } from "@walletconnect/types"; import { ErrorResponse } from "@walletconnect/jsonrpc-utils"; export declare const REACT_NATIVE_PRODUCT = "ReactNative"; export declare const ENV_MAP: { reactNative: string; node: string; browser: string; unknown: string; }; export declare const EMPTY_SPACE = " "; export declare const COLON = ":"; export declare const SLASH = "/"; export declare const DEFAULT_DEPTH = 2; export declare const ONE_THOUSAND = 1000; export declare const SDK_TYPE = "js"; export declare function isNode(): boolean; export declare function isReactNative(): boolean; export declare function isBrowser(): boolean; export declare function getEnvironment(): string; export declare function appendToQueryString(queryString: string, newQueryParams: any): string; export declare function getAppMetadata(): SignClientTypes.Metadata; export declare function getRelayClientMetadata(protocol: string, version: number): RelayerClientMetadata; export declare function getJavascriptOS(): string; export declare function getJavascriptID(): string; export declare function formatUA(protocol: string, version: number, sdkVersion: string): string; export declare function formatRelayRpcUrl({ protocol, version, relayUrl, sdkVersion, auth, projectId, useOnCloseEvent, }: RelayerTypes.RpcUrlParams): string; export declare function getHttpUrl(url: string): string; export declare function assertType(obj: any, key: string, type: string): void; export declare function parseContextNames(context: string, depth?: number): any[]; export declare function formatMessageContext(context: string): string; export declare function hasOverlap(a: any[], b: any[]): boolean; export declare function getLastItems(arr: any[], depth?: number): any[]; export declare function mapToObj(map: Map): Record; export declare function objToMap(obj: Record): Map; export declare function mapEntries(obj: Record, cb: (x: A) => B): Record; export declare const enumify: (x: T) => T; export declare function capitalizeWord(word: string): string; export declare function capitalize(str: string): string; export declare function createDelayedPromise(expiry?: number, expireErrorMessage?: string): { resolve: (value?: T) => void; reject: (value?: ErrorResponse) => void; done: () => Promise; }; export declare function createExpiringPromise(promise: Promise, expiry: number, expireErrorMessage?: string): Promise; export declare function formatExpirerTarget(type: "topic" | "id", value: string | number): string; export declare function formatTopicTarget(topic: string): string; export declare function formatIdTarget(id: number): string; export declare function parseExpirerTarget(target: string): { id?: number | undefined; topic?: string | undefined; }; export declare function calcExpiry(ttl: number, now?: number): number; export declare function isExpired(expiry: number): boolean; export declare function engineEvent(event: EngineTypes.Event, id?: number | string | undefined): string; export declare function mergeArrays(a?: T[], b?: T[]): T[]; export declare function handleDeeplinkRedirect({ id, topic, wcDeepLink, }: { id: number; topic: string; wcDeepLink: string; }): Promise; //# sourceMappingURL=misc.d.ts.map