/// /** * Wraps a Promise with a Timeout * * @param {Tag} tag - Tag Object to Write * @param {number} - Timeout Length (ms) * @param {Error|string} - Error to Emit if Timeout Occurs * @returns {Promise} * @memberof Controller */ declare function promiseTimeout(promise: any, ms: any, error?: string | Error): Promise; /** * Delays X ms * * @param {number} ms - Delay Length (ms) * @returns {Promise} */ declare const delay: (ms: any) => Promise; declare const bufferToString: (buff: any) => string; declare const stringToBuffer: (str: any, len?: number) => Buffer; declare const objToString: (obj: any) => string; declare const stringToObj: (str: any, len?: number) => { LEN: any; DATA: any[]; }; export { promiseTimeout, delay, stringToBuffer, bufferToString, objToString, stringToObj };