import { type Project, type Stage } from "./config.js"; import { type AgentAdapter, type HostingAdapter, type RunRecord, type Workspace } from "./domain.js"; import { type InvocationTask } from "./invocation.js"; import type { Store } from "./store.js"; export type { InvocationTask } from "./invocation.js"; export interface OperationDependencies { executionEnvironment?: NodeJS.ProcessEnv; currentProject?: () => Project; promptBaseDirectory?: string; store: Store; project: Project; workspace: Workspace; hosting: HostingAdapter; agents: Record; artifacts: string; signal: AbortSignal; redact: (text: string) => string; beforeStep?: () => Promise; executionFingerprint?: () => Promise; } /** Reusable durable coding operations. Call from a registered DBOS workflow. */ export declare class Operations { readonly runId: string; readonly dependencies: OperationDependencies; constructor(runId: string, dependencies: OperationDependencies); step(name: string, operation: (run: RunRecord) => Promise): Promise; eligible(): Promise; reviewEligible(): Promise; private assertReviewFresh; prepareReview(): Promise; prepare(): Promise; invoke(name: string, stage: Stage, task: InvocationTask): Promise; implement(): Promise; private recordAgentReport; fix(): Promise; validate(): Promise; private recordValidation; private publicationSession; writePublication(): Promise; commit(): Promise; push(): Promise; publish(): Promise; review(): Promise; recordReadiness(): Promise<{ draft: boolean; complete: boolean; repairable: boolean; }>; publishReview(): Promise; complete(outcome?: RunRecord["outcome"]): Promise; } export declare function defaultWorkflow(operations: Operations): Promise; export declare function reviewWorkflow(operations: Operations): Promise;