/** Autonomous-session workflow that drives runtime turns without interactive shell prompts. */
import type { ThinkingLevel } from '../../core/index.js';
import type { SessionEntry } from '../../core/session-schema.js';
export declare const AUTONOMOUS_STATE_CUSTOM_TYPE = "autonomous_state";
export interface AutonomousState {
    enabled: true;
    originalUserTask: string;
    progressFolder?: string;
}
export interface PendingRefresh {
    query: string;
    progressFolder?: string;
    model?: string;
    thinkingLevel?: ThinkingLevel;
}
export interface ConsumedPendingRefresh extends PendingRefresh {
    prompt: string;
}
export declare function extractProgressFolder(query: string): string | undefined;
export declare function inferAutonomousStateFromEntries(entries: SessionEntry[]): AutonomousState | null;
export declare function buildAutonomousRefreshPrompt(state: AutonomousState, refresh: PendingRefresh): string;
//# sourceMappingURL=autonomous-workflow.d.ts.map