import { type SuiteRunResult, type TaskContextFileScope, type TaskContextManifest, type TaskContextSourceIdentity } from '@opensip-cli/contracts'; import { type SuiteSource } from './built-in-suites.js'; import type { SuiteStepReviewInput } from './review-brief.js'; import type { SuiteLedgerIdentity } from './run-ledger-persist.js'; import type { ValidatedSuite } from './validate-suite.js'; export type TaskContextPreparation = { readonly aggregates: false; readonly cwd: string; } | { readonly aggregates: true; readonly cwd: string; readonly sourceStart: TaskContextSourceIdentity; readonly producerVersion: string; readonly fileScope: TaskContextFileScope; readonly projectIdentity: string; }; export interface TaskContextPreparationInput { readonly name: string; readonly source?: SuiteSource; readonly suiteOpts: Readonly>; readonly defaultChanged?: boolean; } /** Validate and bind the built-in context suite before any producer runs. */ export declare function prepareTaskContext(input: TaskContextPreparationInput, suite: ValidatedSuite, requestedCwd: string): Promise; export declare function taskContextManifestFor(input: { readonly preparation: TaskContextPreparation; readonly ledger: SuiteLedgerIdentity; readonly steps: readonly SuiteStepReviewInput[]; }): Promise; /** Recheck durable evidence while the caller holds the datastore write lock. */ export declare function taskContextPointersAvailable(manifest: TaskContextManifest): boolean; /** Fail closed if retention or another writer invalidated a just-produced exact pointer. */ export declare function revalidateTaskContextPointers(manifest: TaskContextManifest): TaskContextManifest; export declare function logTaskContextManifest(suite: string, manifest: TaskContextManifest | undefined): void; /** A context result is never reported ready when its parent ledger write failed. */ export declare function resultWithPersistence(base: SuiteRunResult, runId: string | undefined): SuiteRunResult; //# sourceMappingURL=task-context-orchestration.d.ts.map