import type { SessionState, ToolResult } from "../types.js"; /** * Read all session state files from `.skaile/sessions/` and return them * sorted newest-first by `updatedAt`. * * Silently skips missing directories and corrupt JSON files. This function * is exported for internal use by `flows.ts` — prefer {@link sessionList} or * {@link sessionGet} for tool-level access. * * @param projectDir - Absolute path to the skaile project root. * * @docLink packages/workspace-plugin/concepts#tool-delivery */ export declare function readAllSessions(projectDir: string): Promise; /** * List all past agent run sessions for the workspace, sorted newest-first. * * Returns a JSON array of {@link SessionState} objects read from * `.skaile/sessions/*.json`. * * @param projectDir - Absolute path to the skaile project root. * * @docLink packages/workspace-plugin/concepts#tool-delivery */ export declare function sessionList(projectDir: string): Promise; /** * Get full metadata for a specific agent run session. * * @param projectDir - Absolute path to the skaile project root. * @param runId - Run ID as returned by {@link sessionList}. * * @docLink packages/workspace-plugin/concepts#tool-delivery */ export declare function sessionGet(projectDir: string, runId: string): Promise; //# sourceMappingURL=sessions.d.ts.map