/** * Wrap a promise with a timeout and optional abort signal. * Rejects with the given message if the timeout fires first. * Cleans up all listeners on settlement. */ export declare function withTimeout(promise: Promise, ms: number, message: string, signal?: AbortSignal): Promise;