/** * Lightweight session discovery — returns minimal session records. * * Unlike listSessions() which returns full Session objects, findSessions() * returns only the fields agents need for discovery: id, name, status, * startedAt, and scope. * * @task T5119 * @task T1450 — normalized (projectRoot, params) signature */ import type { SessionFindParams, SessionScope } from '@cleocode/contracts'; import type { NextDirectives } from '../mvi-helpers.js'; /** Minimal session record returned by findSessions(). */ export interface MinimalSessionRecord { id: string; name: string; status: string; startedAt: string; scope: SessionScope; /** Progressive disclosure directives for follow-up operations. */ _next?: NextDirectives; } /** * @deprecated Use SessionFindParams from @cleocode/contracts instead. * Kept for backward compatibility with engine/cleo.ts callers. */ export type FindSessionsParams = SessionFindParams; /** * Find sessions with minimal field projection. * Normalized Core signature: (projectRoot, params) → Result. * * @param projectRoot - Absolute path to the project root * @param params - Optional filters (status, scope, query, limit) * @returns Array of minimal session records * @task T1450 */ export declare function findSessions(projectRoot: string, params?: SessionFindParams): Promise; //# sourceMappingURL=find.d.ts.map