/**
 * 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
 */
import type { SessionScope } from '@cleocode/contracts';
import type { DataAccessor } from '../store/data-accessor.js';
/** Minimal session record returned by findSessions(). */
export interface MinimalSessionRecord {
    id: string;
    name: string;
    status: string;
    startedAt: string;
    scope: SessionScope;
}
/** Parameters for findSessions(). */
export interface FindSessionsParams {
    status?: string;
    scope?: string;
    query?: string;
    limit?: number;
}
/**
 * Find sessions with minimal field projection.
 *
 * Loads all sessions, applies filters, then projects to minimal fields.
 * This is cheaper for agents that only need discovery-level data.
 *
 * @param accessor - DataAccessor for loading sessions
 * @param params - Optional filters (status, scope, query, limit)
 * @returns Array of minimal session records
 */
export declare function findSessions(accessor: DataAccessor, params?: FindSessionsParams): Promise<MinimalSessionRecord[]>;
//# sourceMappingURL=find.d.ts.map