/** * Limits the execution time of a promise with a timeout. * If the promise doesn't resolve within the specified timeout, it will reject with the provided error. * * @template T - The type of the promise's resolved value * @param task - The promise to execute with timeout limitation * @param timeoutMillisecond - The timeout duration in milliseconds. If undefined or <= 0, no timeout is applied * @param timeoutError - The error to throw when timeout occurs * @returns A promise that resolves with the task result or rejects with timeoutError on timeout * * @example * ```typescript * const result = await limitTimeout( * fetch('/api/data'), * 5000, * new Error('Request timeout') * ); * ``` */ export declare function limitTimeout(task: Promise, timeoutMillisecond: number | undefined, timeoutError: Error): Promise;