import type { Duration, Timer } from "webappwiz/time";
import type { Runner } from "./runner.js";
/**
* A `Runner` wrapping another, rejecting anything that takes longer than
* `timeout`. The work carries on wherever it is running: this decides how long
* the caller waits for it.
*
* ```ts
* const runner = new TimeoutRunner(inner, timer, Duration.secs(30));
* ```
*/
export declare class TimeoutRunner implements Runner {
private readonly runner;
private readonly timer;
private readonly timeout;
constructor(runner: Runner, timer: Timer, timeout: Duration);
send(input: Input): Promise