/**
 * @license
 * Copyright 2025 Qwen Code
 * SPDX-License-Identifier: Apache-2.0
 */
import { type Config, type SessionListItem } from '@hoptrendy/hopcode-core';
import type { UseHistoryManagerReturn } from './useHistoryManager.js';
export interface UseResumeCommandOptions {
    config: Config | null;
    historyManager: Pick<UseHistoryManagerReturn, 'clearItems' | 'loadHistory'>;
    startNewSession: (sessionId: string) => void;
    setSessionName?: (name: string | null) => void;
    remount?: () => void;
}
export interface UseResumeCommandResult {
    isResumeDialogOpen: boolean;
    /** Pre-filtered sessions for the picker (when multiple title matches). */
    resumeMatchedSessions: SessionListItem[] | undefined;
    openResumeDialog: (matchedSessions?: SessionListItem[]) => void;
    closeResumeDialog: () => void;
    /**
     * Async — the implementation awaits SessionService and SessionStart hooks.
     * Callers that need to chain post-resume work should `await` it; pure
     * fire-and-forget callers (the resume dialog's `onSelect`) can ignore the
     * promise.
     */
    handleResume: (sessionId: string) => Promise<void>;
}
export declare function useResumeCommand(options?: UseResumeCommandOptions): UseResumeCommandResult;
