import type { StoredRun, StoredRunStep } from '@opensip-cli/contracts'; import type { DataStore } from '@opensip-cli/datastore'; export { resolveParentRunEvidence, type ParentRunEvidenceFound, type ParentRunEvidenceInclusion, type ParentRunEvidenceMetadata, type ParentRunEvidenceSnapshot, type ResolveParentRunEvidenceOptions, type ResolveParentRunEvidenceResult, } from './run-evidence-read.js'; export { DEFAULT_PARENT_RUN_EVIDENCE_BYTE_BUDGET, DEFAULT_PARENT_RUN_LIST_LIMIT, DEFAULT_PARENT_RUN_STEP_LIMIT, MAX_PARENT_RUN_EVIDENCE_BYTE_BUDGET, MAX_PARENT_RUN_READ_LIMIT, } from './run-read-validation.js'; /** Filters for a bounded newest-first parent-Run page. */ export interface ListParentRunsOptions { readonly limit?: number; /** Optional fail-closed project-root scope, applied before the public limit. */ readonly cwdWithin?: string; } /** Bounded newest-first parent-Run page and truncation metadata. */ export interface ParentRunList { readonly runs: readonly StoredRun[]; readonly requestedLimit: number; readonly effectiveLimit: number; readonly truncated: boolean; } /** Exact parent-Run identity, pagination, and optional project scope. */ export interface ResolveParentRunOptions { readonly runId: string; readonly offset?: number; readonly limit?: number; /** Optional fail-closed project-root scope for the exact parent. */ readonly cwdWithin?: string; } /** Successful exact parent-Run and deterministic RunStep page. */ export interface ParentRunFound { readonly status: 'found'; readonly run: StoredRun; readonly steps: readonly StoredRunStep[]; readonly total: number; readonly offset: number; readonly limit: number; readonly nextOffset?: number; } /** Exact parent-Run read that found no in-scope identity. */ export interface ParentRunNotFound { readonly status: 'not-found'; } /** Exact parent-Run read result. */ export type ResolveParentRunResult = ParentRunFound | ParentRunNotFound; /** * Read a bounded newest-first parent-Run page. A limit+1 snapshot query proves * truncation without an unbounded count. */ export declare function listParentRuns(store: DataStore, options?: ListParentRunsOptions): ParentRunList; /** Resolve one exact parent Run and a bounded deterministic RunStep page. */ export declare function resolveParentRun(store: DataStore, options: ResolveParentRunOptions): ResolveParentRunResult; //# sourceMappingURL=run-reads.d.ts.map