/**
 * one-shot.ts — `olam ask "<question>"` answers once and exits.
 *
 * Script-friendly: prints the answer to stdout, exits 0 on success and
 * non-zero on failure (SDK unavailable → exit 1 with an actionable message).
 */
import { type AskQueryFn } from './sdk-client.js';
export interface OneShotDeps {
    /** Injected query fn for tests; live SDK resolution when absent. */
    readonly queryFn?: AskQueryFn;
    /** Override checkout detection (tests). */
    readonly checkoutRoot?: string | null;
    /** stdout writer (tests). Defaults to process.stdout.write. */
    readonly write?: (s: string) => void;
}
/**
 * Run a single question. Returns the process exit code (0 success, 1 failure)
 * rather than calling process.exit directly, so it is unit-testable.
 */
export declare function runOneShot(question: string, deps?: OneShotDeps): Promise<number>;
//# sourceMappingURL=one-shot.d.ts.map