export interface CostGuardOpts {
    /** Maximum wall-clock time in milliseconds before fallback (default 5000) */
    wallClockMs?: number;
    /** Maximum output tokens before fallback (unused for deterministic path but documented) */
    maxOutputTokens?: number;
}
export interface FallbackResult {
    fallback: true;
}
/**
 * Run `fn` under a wall-clock timeout.
 * If fn completes within the deadline → return its result.
 * If fn exceeds the deadline → return { fallback: true } and emit telemetry.
 *
 * Note: the in-flight promise from fn is not cancelled (JS has no cancellation primitives),
 * but callers will receive the fallback immediately and can ignore the late result.
 */
export declare function runWithGuard<T>(fn: () => Promise<T>, opts?: CostGuardOpts): Promise<T | FallbackResult>;
//# sourceMappingURL=cost-guard.d.ts.map