/** Presentation-facing reading of the Harness-owned `todos` projection. */ import type { TodoItem } from '@deepseek-ai/dsh-tool-todo'; import type { ProjectionSnapshot } from '@deepseek-ai/dsh-session-projection'; /** One current Todo reading the terminal can present. */ export type TodoReading = { readonly kind: 'projections-unavailable'; } | { readonly kind: 'unregistered'; } | { readonly kind: 'none'; } | { readonly kind: 'empty'; } | { readonly kind: 'list'; readonly items: readonly TodoItem[]; }; /** * Read the current Todo value from the authoritative generic snapshot. * * Projection registrations are process-wide, so a key's presence says nothing * about whether this exact agent mounted the tool. The value is deliberately * presented only as the projection contract describes it. * * Takes the snapshot rather than the observer so that a caller reading several * units — the status line reads Todo and context occupancy on the same frame — * pays for one validated cut per frame instead of one per consumer. * @param snapshot - the authoritative cut, or undefined when the profile mounts no registry. * @returns the small terminal-facing Todo reading. */ export declare function todoReading(snapshot: ProjectionSnapshot | undefined): TodoReading; /** * Build the compact completed/total status segment from a current Todo list. * @param reading - the current projection reading. * @returns an indivisible status segment, or undefined without a non-empty list. */ export declare function todoSummary(reading: TodoReading): string | undefined; //# sourceMappingURL=model.d.ts.map