import type { ToolSession } from "../tools/index.js";
import type { JsStatusEvent } from "./js/shared/types.js";
/** Synthetic bridge name reserved for the `completion()` helper across both runtimes. */
export declare const EVAL_COMPLETION_BRIDGE_NAME = "__completion__";
type CompletionTier = "smol" | "default" | "slow";
export interface EvalCompletionBridgeOptions {
    session: ToolSession;
    signal?: AbortSignal;
    emitStatus?: (event: JsStatusEvent) => void;
}
export interface EvalCompletionResult {
    text: string;
    details: {
        model: string;
        tier: CompletionTier;
        structured: boolean;
    };
}
/**
 * Run a single stateless completion on behalf of an eval cell's `completion()` call.
 * Returns a `{ text, details }` value shaped like a {@link callSessionTool}
 * result so the existing bridge transport carries it to either runtime.
 */
export declare function runEvalCompletion(args: unknown, options: EvalCompletionBridgeOptions): Promise<EvalCompletionResult>;
export {};
