export declare class Buffer { readonly raw: ArrayBuffer; readonly type?: string | undefined; protected constructor(raw: ArrayBuffer, type?: string | undefined); /** * Creates a new instance of a `Buffer` from an ArrayBuffer * * @param buffer * @param type the mime-type if known */ static from(buffer: ArrayBuffer, type?: string): Buffer; /** * Dumps the `Buffer` as a string using the specified encoding type * * @param encoding */ toString(encoding?: 'utf8' | 'base64' | 'inline-base64' | 'hex'): string; }