import { Package } from "./Package"; export declare const EMPTY_FUNCTION: () => void; export declare type Writable = { -readonly [P in keyof T]: T[P]; }; export declare const RESOLVED_PROMISE: Promise; export declare const MAX_UINT_32 = 4294967295; export declare const MAX_SUPPORTED_ARRAY_BUFFER_SIZE: number; export declare type CorkFunction = (callback: () => void) => void; export declare type GroupCorkFunction = (group: string, callback: () => void) => void; export declare type GroupSendFunction = (group: string, msg: ArrayBuffer | string, binary?: boolean, batch?: boolean) => void; export declare type SendFunction = (msg: ArrayBuffer | string, binary?: boolean, batch?: boolean) => void; export declare type MultiSendFunction = (messages: (ArrayBuffer | string)[], batches: boolean) => void; export declare function loadDefaults(options: Partial, defaults: T): T; export declare function estimateMaxUTF8Size(str: string): number; export declare function escapeJSONString(str: string): string; export declare function escapePlaceholderSequence(key: string): string; export declare function unescapePlaceholderSequence(key: string): string; export declare function sendPackage(pack: Package, send: SendFunction): void;