/** * Wraps a promise with a timeout, rejecting if it does not * resolve within the specified milliseconds * @param {Promise} promise - The promise to wrap * @param {number} ms - The timeout in milliseconds * @returns {Promise} The result of the promise or a timeout error * @example * const result = await timeout(fetch("/api"), 5000); */ export declare const timeout: (promise: Promise, ms: number) => Promise;