import { ethers } from 'ethers'; import * as constants from '#constants'; import type { AnyObj } from '#types/utils'; export declare const isNode: boolean; export declare function createHmacRestRequestSignatureHeader(payload: string, secret: string): { [constants.REST_HMAC_SIGNATURE_HEADER]: string; }; /** * Creates a new wallet and nonce to use for delegated keys * * @internal */ export declare function createDelegatedKeyWalletAndNonce(): readonly [ ethers.HDNodeWallet, string ]; /** * - For use internally at Kuma and may be removed or changed anywhere it is implemented without warning. * * @internal */ export declare const INTERNAL_SYMBOL: unique symbol; /** * Asserts that the provided nonce is a uuid v1 string. * * @internal */ export declare function assertNonceIsValid(nonce: string): asserts nonce is string; export declare function deriveBaseURL(options: { sandbox?: boolean; overrideBaseURL?: string; api: 'rest' | 'websocket'; baseRestApiURL?: string; baseWebSocketURL?: string; }): string; /** * URLSearchParams encodes undefined and null as strings, we remove them as a * precaution if this happens. */ export declare function sanitizeSearchParams(searchParams?: URLSearchParams | AnyObj | undefined): URLSearchParams; /** * By using this in default switch case, we can enforce exhaustive check of all case cases. * * @example * ```typescript * switch (prop) { * // ... * default: * throw new UnreachableCaseError(prop); * } * ``` * * @internal */ export declare class UnreachableCaseError extends Error { /** * * @param value The value being switched that caused the default case to be reached. * @param info Optionally the name of the fn or switch that caused the error for logging. */ constructor(value: never, info?: string); } //# sourceMappingURL=utils.d.ts.map