///
import { Data } from './types.js';
/** create a promise with a timeout */
export declare const promiseWithTimeout: (promise: Promise, ms: number, timeoutError?: Error) => Promise;
/** make a small promise-based pause */
export declare const pause: (ms?: number) => Promise;
/** creates a new Task using setTimeout() */
export declare const task: (task: () => void) => NodeJS.Timeout;
/** creates a new Microtask using Promise() */
export declare const tick: any;
declare const isStringMessage: (data: any) => boolean;
declare const isBufferMessage: (data: any) => boolean;
declare const isJSONMessage: (data: Data) => boolean;
export { isStringMessage, isBufferMessage, isJSONMessage };
//# sourceMappingURL=helpers.d.ts.map