import type { AgentName } from './types.js'; import type { SessionSummary, SessionListOptions } from './session-types.js'; import type { WorkspaceSessionContext } from './workspaces.js'; type SessionShape = { agent: AgentName; sessionId: string; createdAt: string; updatedAt: string; title?: string; turnCount: number; messages?: Array; tags?: string[]; model?: string; cost?: SessionSummary['cost']; cwd?: string; workspace?: WorkspaceSessionContext; workspaceId?: string; forkedFrom?: string; }; type SessionAdapter = { parseSessionFile(filePath: string): Promise; }; export declare function canFastListByDate(options: SessionListOptions | undefined, sortField: string): boolean; export declare function listByRecentFiles(adapter: SessionAdapter, filePaths: string[], limit: number, sortDir: 'asc' | 'desc', resolveUnifiedId: (agent: AgentName, nativeSessionId: string) => string): Promise; export declare function getSessionDates(session: { createdAt: string; updatedAt: string; }): { createdAt: Date; updatedAt: Date; }; export declare function buildSummary(session: Omit, createdAt: Date, updatedAt: Date, resolveUnifiedId: (agent: AgentName, nativeSessionId: string) => string): SessionSummary; export {};