import { Readable } from '../types';
/**
 * Validates input and converts to Uint8Array
 *
 * @param data any string, ArrayBuffer or Uint8Array
 */
export declare function prepareData(data: string | Blob | ArrayBuffer | Uint8Array | Readable): Promise<Blob | ReadableStream<Uint8Array> | never>;
export declare function prepareWebsocketData(data: string | ArrayBuffer | Blob): Promise<Uint8Array> | never;
