import type { TUIState } from '../state.js'; import type { SlashCommandContext } from './types.js'; /** Minimal interface accepted by resetUIAfterClone so it works from both * slash-command handlers (SlashCommandContext) and the MastraTUI class. */ interface CloneResetContext { state: TUIState; updateStatusLine: () => void; renderExistingMessages: () => Promise; showInfo: (message: string) => void; } /** * Confirm whether the user wants to clone a thread. Returns true if * confirmed, false on cancel or "No". */ export declare function confirmClone(state: TUIState, threadLabel?: string): Promise; /** * Prompt for an optional clone name. Returns the trimmed name, or null * if the user presses Esc or submits an empty string. */ export declare function askCloneName(state: TUIState): Promise; /** * Shared post-clone UI reset: clears chat, tools, tasks, re-renders messages, * and shows an info banner. Every clone path should call this after * `harness.cloneThread()` succeeds. */ export declare function resetUIAfterClone(ctx: CloneResetContext, clonedTitle: string): Promise; export declare function handleCloneCommand(ctx: SlashCommandContext): Promise; export {}; //# sourceMappingURL=clone.d.ts.map