/**
* This file is part of the @egodigital/egoose distribution.
* Copyright (c) e.GO Digital GmbH, Aachen, Germany (https://www.e-go-digital.com/)
*
* @egodigital/egoose is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, version 3.
*
* @egodigital/egoose is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see .
*/
///
import * as Stream from 'stream';
/**
* Returns a value as buffer.
*
* @param {any} data The input data.
* @param {string} [enc] The custom encoding for string to use. Default: utf8
*
* @return {Promise} The promise with the buffer.
*/
export declare function asBuffer(data: any, enc?: string): Promise;
/**
* Reads the content of a stream.
*
* @param {Stream.Readable} stream The stream.
* @param {string} [enc] The custom (string) encoding to use.
*
* @returns {Promise} The promise with the content.
*/
export declare function readAll(stream: Stream.Readable, enc?: string): Promise;