/** * Interactive summary helpers. */ import { type StepPreview } from '../../infra/config/index.js'; import { type TaskHistoryLocale, type ConversationMessage, type TaskHistorySummaryItem, type WorkflowContext, type PostSummaryAction, type SummaryActionValue, type SummaryActionOption, type SummaryActionLabels, type InteractiveSummaryUIText, type ActionWithoutExecuteUIText } from './interactive-summary-types.js'; export type { ConversationMessage, TaskHistorySummaryItem, WorkflowContext, PostSummaryAction, SummaryActionValue, SummaryActionOption, SummaryActionLabels, InteractiveModeAction, InteractiveSummaryUIText, ActionWithoutExecuteUIText, } from './interactive-summary-types.js'; export { BASE_SUMMARY_ACTIONS } from './interactive-summary-types.js'; export declare function formatStepPreviews(previews: StepPreview[], lang: TaskHistoryLocale): string; export declare function normalizeTaskHistorySummary(items: TaskHistorySummaryItem[], lang: TaskHistoryLocale): TaskHistorySummaryItem[]; export declare function formatTaskHistorySummary(taskHistory: TaskHistorySummaryItem[], lang: TaskHistoryLocale): string; export declare function buildTaskInstructionFormat(lang: 'en' | 'ja', formalSpec: boolean, formalSpecComments?: boolean): string; export declare function buildSummaryPrompt(history: ConversationMessage[], hasSession: boolean, lang: 'en' | 'ja', noTranscriptNote: string, conversationLabel: string, workflowContext?: WorkflowContext, sourceContext?: string, promptContext?: string, formalSpec?: boolean, hasReferenceHistory?: boolean, formalSpecComments?: boolean): string; export declare function buildSummaryActionOptions(labels: SummaryActionLabels, append?: readonly SummaryActionValue[], exclude?: readonly SummaryActionValue[]): SummaryActionOption[]; export declare function selectSummaryAction(task: string, proposedLabel: string, actionPrompt: string, options: SummaryActionOption[]): Promise; /** * Action selector for a finished summary, with the run's withheld actions * applied. Shared so the readline loop and the TUI offer the same list in the * same order rather than each assembling one. */ export declare function createPostSummaryActionSelector(proposedLabel: string, ui: InteractiveSummaryUIText, excludeActions?: readonly SummaryActionValue[]): (task: string) => Promise; /** The same selector, for a run that withholds nothing. */ export declare function selectPostSummaryAction(task: string, proposedLabel: string, ui: InteractiveSummaryUIText): Promise; /** * Build the /replay command hint for intro messages. * * Returns a hint string when previous order content is available, empty string otherwise. */ export declare function buildReplayHint(lang: 'en' | 'ja', hasPreviousOrder: boolean): string; /** * Create an action selector that excludes the 'execute' option. * * Used by retry and instruct modes where worktree execution is assumed. */ export declare function createSelectActionWithoutExecute(ui: ActionWithoutExecuteUIText): (task: string, lang: 'en' | 'ja') => Promise; //# sourceMappingURL=interactive-summary.d.ts.map