import type { ConversationMessageSnapshot, ConversationTitleSource } from '../core/conversation.js';
import type { HelperModel } from '../config/helper-model.js';
import type { ConfigManager } from '../config/manager.js';
export type ReturnContextMode = 'off' | 'local' | 'assisted';
export interface SessionContinuityHints {
    readonly pendingApprovals?: number | undefined;
    readonly activeTasks?: number | undefined;
    readonly blockedTasks?: number | undefined;
    readonly remoteContracts?: number | undefined;
    readonly remoteRunners?: readonly string[] | undefined;
    readonly worktreeCount?: number | undefined;
    readonly worktreePaths?: readonly string[] | undefined;
    readonly openPanels?: readonly string[] | undefined;
}
export interface SessionReturnContextSummary {
    readonly activityLabel: string;
    readonly statusLabel: string;
    readonly lastUserPrompt?: string | undefined;
    readonly lastAssistantReply?: string | undefined;
    readonly pendingApprovals: number;
    readonly toolCallCount: number;
    readonly toolResultCount: number;
    readonly assistantTurnCount: number;
    readonly userTurnCount: number;
    readonly lastRole?: string | undefined;
    readonly activeTasks?: number | undefined;
    readonly blockedTasks?: number | undefined;
    readonly remoteContracts?: number | undefined;
    readonly remoteRunners?: readonly string[] | undefined;
    readonly worktreeCount?: number | undefined;
    readonly worktreePaths?: readonly string[] | undefined;
    readonly openPanels?: readonly string[] | undefined;
    readonly lines: readonly string[];
    readonly assistedNarrative?: string | undefined;
}
export interface PersistedSessionContext {
    readonly titleSource?: ConversationTitleSource | undefined;
    readonly returnContext?: SessionReturnContextSummary | undefined;
}
type ReturnContextConfig = Pick<ConfigManager, 'get'>;
export declare function buildPersistedSessionContext(messages: readonly ConversationMessageSnapshot[], titleSource?: ConversationTitleSource, hints?: SessionContinuityHints): PersistedSessionContext;
export declare function getReturnContextMode(configManager: ReturnContextConfig): ReturnContextMode;
export declare function buildLocalReturnContextSummary(messages: readonly ConversationMessageSnapshot[], hints?: SessionContinuityHints): SessionReturnContextSummary;
export declare function maybeAssistReturnContextSummary(configManager: ReturnContextConfig, helperModel: Pick<HelperModel, 'chat'>, summary: SessionReturnContextSummary): Promise<SessionReturnContextSummary>;
export declare function formatReturnContextForDisplay(summary: SessionReturnContextSummary | undefined): string[];
export {};
//# sourceMappingURL=session-return-context.d.ts.map