import type { TodoHit } from '../../shared/types.js';
import type { PagesService } from './pages.js';
import type { WsGateway } from '../ws/gateway.js';
export declare class TodosIndexerService {
    private pages;
    private ws;
    private debounceMs;
    private pending;
    private byPath;
    constructor(pages: PagesService, ws: WsGateway);
    schedulePage(relPath: string): void;
    handleUnlink(relPath: string): void;
    indexAll(): Promise<void>;
    indexPage(relPath: string, opts?: {
        silent?: boolean;
    }): Promise<void>;
    listAll(): TodoHit[];
    listByPath(relPath: string): TodoHit[];
    countByPath(): Record<string, number>;
    countTotal(): number;
}
