///
export * from './flusher';
export * from './number';
export * from './retry';
import { Readable as ReadableStream, Stream, Transform, TransformCallback } from 'stream';
export declare function generateUUID(): string;
export declare function generateRequestId(): string;
export declare function getConfig(setting: any): any;
export declare function tryJSONParse(text: string, fallback?: any): T;
export declare function isOutputPort(portId: string): boolean;
export declare function checkVersion(b: Buffer): 'v1' | 'v2';
export declare function lz_decompress(s: Buffer): string;
export declare function isTrue(value: unknown): boolean;
export declare function isDesktop(): boolean;
export declare const isUseMaster: () => boolean;
export declare function isDesktopMaster(): boolean;
export declare function stringifyIfNecessary(data: any): any;
export declare function pathEndWith(csvFilePath: any, fileSuffix: any): boolean;
export declare function readableToString(readable: ReadableStream): Promise;
export declare function leftMerge(leftObj?: {}, rightObj?: {}): {};
/**
* insert a string at a specific index
*
* @param leftInsert and @param replace cannot be true at the same time
*
* by default, @param insertStr will be inserted between index and index + 1,
* you can set @param leftInsert: true to insert @param insertStr between index-1 and index
*
* @param {*} originString
* @param {*} index
* @param {*} insertStr
*/
export declare function insertbyIndex(originString: string, { index, insertStr, leftInsert, replace }: {
index: any;
insertStr: any;
leftInsert?: boolean | undefined;
replace?: boolean | undefined;
}): string;
/**
* find the nth occurrence of the specified character
* @param {*} str
* @param {*} char
* @param {*} num
*/
export declare function indexOfNthCharacters(str: string, char: any, num: any): number;
/**
* find the nth occurrence of the specified character
* @param {*} str
* @param {*} char
* @param {*} num
*/
export declare function lastIndexOfNthCharacters(str: string, char: any, num: any): number;
export declare function signatureV1(secret?: string, data?: string): string;
export declare function fileExists(path: string): boolean;
export declare function writeBufToFile(dstPath: any, buf: any): Promise;
export declare function sleep(ms: number): Promise;
export declare function convertStreamToBuffer(stream: Stream): Promise;
declare type BufferEncoding = 'ascii' | 'utf8' | 'utf-8' | 'utf16le' | 'ucs2' | 'ucs-2' | 'base64' | 'latin1' | 'binary' | 'hex';
export declare function convertStreamToString(stream: Stream, encoding?: BufferEncoding): Promise;
export declare function convertBufferToStream(buffer: Buffer): Stream;
export declare class AppendTransform extends Transform {
private str;
constructor(str: string);
_transform(chunk: any, encoding: BufferEncoding, done: TransformCallback): void;
_flush(done: TransformCallback): void;
}