import { type RecentSession } from "@kenkaiiii/gg-engine/internal/core/project-discovery.js"; export type SidecarSession = RecentSession; /** * List coding or chat sessions using the caps exposed by the gg-app sidecar. * * `homeDir` only exists so tests can point the Claude Code / Codex lookup at a * fixture home; production always uses the real one. */ export declare function listSidecarSessions(cwd: string, requestedAgent: string | null, coderSessionsDir: string, homeDir?: string, /** The project's GG-made worktrees: their conversations are listed with it. */ worktreeCwds?: readonly string[]): Promise; /** The most one page of a project's sessions may hold ("Show more" steps up to it). */ export declare const MAX_SESSION_PAGE = 100; /** One page of a project's coding sessions, and whether there are older ones. */ export interface SessionPage { sessions: SidecarSession[]; hasMore: boolean; } /** * A project's newest `limit` coding sessions (native first, then Claude Code / * Codex), or with `query`, every saved one whose title matches it. Search reads * the per-folder summary index, so it covers the whole history cheaply. */ export declare function pageProjectSessions(cwd: string, coderSessionsDir: string, options: { limit: number; query?: string; }, homeDir?: string, worktreeCwds?: readonly string[]): Promise;