import type { Logger } from './contract'; import type { SessionRecord, TranscriptMsg } from './types'; export declare abstract class ProviderSessions { abstract readonly family: string; /** Sessions for one workspace, newest first. */ abstract list(root: string): SessionRecord[] | Promise; /** Latest session id for `root`, or undefined when none exist. */ resolveLatest(root: string, _log?: Logger): Promise; /** Read a transcript by id into a normalized message array. */ abstract readTranscript(id: string, opts?: { cwd?: string; file?: string; limit?: number; }): TranscriptMsg[]; }