/**
 * 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.
 */ export declare class Buffer extends Uint8Array { toString ( encoding ? ) ; param value param encodingOrOffset param length static from ( value , encodingOrOffset ? , length ? ) ; static isBuffer ( obj ) ; } export const IsoBuffer = Buffer ; export type IsoBuffer = Buffer ; param arr param encoding returns export function Uint8ArrayToString ( arr , encoding ? ) { if ( Buffer . isBuffer ( arr ) ) { return arr . toString ( encoding ) ; } else { return Buffer . from ( arr ) . toString ( encoding ) ; } } param encoding export function stringToBuffer ( input , encoding ) { const iso = IsoBuffer . from ( input , encoding ) ; return iso . byteLength === iso . buffer . byteLength ? iso . buffer : iso . buffer . slice ( iso . byteOffset , iso . byteOffset + iso . byteLength ) ; } param blob param encoding returns export const bufferToString = ( blob , encoding ) : string => IsoBuffer . from ( blob ) . toString ( encoding ) ;