import { type Configuration, type ConfigurationInput, type Project } from "./config.js"; import { type AgentAdapter, type HostingAdapter, type Workspace } from "./domain.js"; import { Operations } from "./operations.js"; import { Store } from "./store.js"; export interface RunnerOptions { pathBaseDirectory?: string; promptBaseDirectory?: string; config: ConfigurationInput; /** Reread configuration without changing the process environment. */ reloadConfiguration?: () => Promise; /** Publish a verified candidate before accepting it; failure rejects reload. */ publishConfiguration?: (configuration: Configuration) => Promise; databaseUrl: string; hosting: (project: Project) => HostingAdapter; agents: Record; workflowVersion?: string; workspace?: Workspace; workflow?: (operations: Operations) => Promise; } export declare class Runner { readonly options: RunnerOptions; readonly store: Store; private currentConfig; private currentEffectiveConfiguration; get effectiveConfiguration(): Configuration; get config(): Configuration; private readonly controllers; private readonly active; private readonly hosting; private readonly promptBaseDirectory; private readonly pathBaseDirectory; private reloading; private workflow; private readonly ownership; private stopping; private ownsRuntime; private tickBusy; private timer?; private readonly lastPoll; private readonly polling; constructor(options: RunnerOptions); private get workflowVersion(); private get applicationVersion(); private queue; start(): Promise; private redact; poll(projectId?: string): Promise; private pollProject; private tick; private processCommands; private reload; private pollDueProjects; private dispatchRuns; private dispatch; private recordWorkflowFailure; private execute; private executeOwned; private checkExecutionStart; private recordExecutionFailure; pause(projectId: string): Promise; private initializeExecution; resume(projectId: string): Promise; stop(runId: string): Promise; retry(runId: string, commandId?: string, options?: { refreshIssue?: boolean; }): Promise; recover(runId: string, commandId?: string): Promise; private projectForRun; shutdown(): Promise; }