/** * Result of checking JSONL context existence for a delegation. */ export interface CheckResult { exists: boolean; path: string | null; entries: number; } /** * Result of ensuring (validating) JSONL context for a delegation. */ export interface EnsureResult { ok: boolean; path: string | null; message: string; } /** * Check whether a delegation JSONL context file exists and count its entries. * * Reads the file synchronously if it exists, parses each line as JSON, and * counts lines that parse successfully (non-empty and valid JSON). * * Returns a `CheckResult` with `exists`, the absolute `path`, and `entries`. */ export declare function checkJsonlExists(changeId: string, role: string, cwd?: string): CheckResult; /** * Validate that a delegation JSONL context file exists and contains entries. * * If the JSONL file is missing or empty, returns `ok: false` with a * descriptive message. If the role is not one of the recognized delegation * roles, also returns `ok: false`. * * This is a validation-only function — it does NOT auto-generate JSONL. */ export declare function ensureJsonlContext(changeId: string, role: string, cwd?: string): Promise;