/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ /** * Declare the subset of Buffer functionality we want to make available instead of * exposing the entirely of Node's typings. This should match the public interface * of the browser implementation, so any changes made in one should be made in both. * * @deprecated Moved to the `@fluidframework-internal/client-utils` package. * @internal */ export declare class Buffer extends Uint8Array { toString(encoding?: string): string; /** * @param value - (string | ArrayBuffer). * @param encodingOrOffset - (string | number). * @param length - (number). */ static from(value: any, encodingOrOffset?: any, length?: any): IsoBuffer; static isBuffer(obj: any): obj is Buffer; } /** * @deprecated Moved to the `@fluidframework-internal/client-utils` package. * @internal */ export declare const IsoBuffer: typeof Buffer; /** * @deprecated Moved to the `@fluidframework-internal/client-utils` package. * @internal */ export declare type IsoBuffer = Buffer; /** * Converts a Uint8Array to a string of the provided encoding. * @remarks Useful when the array might be an IsoBuffer. * @param arr - The array to convert. * @param encoding - Optional target encoding; only "utf8" and "base64" are * supported, with "utf8" being default. * @returns The converted string. * * @deprecated Moved to the `@fluidframework-internal/client-utils` package. * @internal */ export declare function Uint8ArrayToString(arr: Uint8Array, encoding?: string): string; /** * Convert base64 or utf8 string to array buffer. * @param encoding - The input string's encoding. * * @deprecated Moved to the `@fluidframework-internal/client-utils` package. * @internal */ export declare function stringToBuffer(input: string, encoding: string): ArrayBufferLike; /** * Convert binary blob to string format * * @param blob - The binary blob * @param encoding - Output string's encoding * @returns The blob in string format * * @deprecated Moved to the `@fluidframework-internal/client-utils` package. * @internal */ export declare const bufferToString: (blob: ArrayBufferLike, encoding: string) => string; //# sourceMappingURL=bufferNode.d.ts.map