/**
 * Small helper functions that runs the provided task in race against a setTimeout with the specified
 * deadline. Further it will cleanup the timeout in any case. Ensuring it does not clock up.
 * @param task in form of an (still pending) promise
 * @param deadlineInMs time until task should be finished
 */
export declare function runTaskWithDeadline(task: Promise<unknown>, deadlineInMs: number): Promise<unknown>;
