import { ControllerManager, SqliteControllerStore, type AnyControllerDefinition, type ControllerResource, type WorkflowSchedulerRequest, type WorkflowSchedulerResult } from "../controllers/index.js"; export type ParsedControllerArgs = { kind: "list"; } | { kind: "get"; controller: string; key: string; } | { kind: "apply"; controller: string; key: string; spec: unknown; } | { kind: "reconcile"; controller: string; key: string; } | { kind: "delete"; controller: string; key: string; } | { kind: "start"; } | { kind: "stop"; }; export type PiChildWorkflowStarter = (request: WorkflowSchedulerRequest, signal: AbortSignal, onComplete: (result: WorkflowSchedulerResult) => void) => Promise; export declare function parseControllerArgs(args: string): ParsedControllerArgs; export declare class PiControllerHost { readonly definitions: AnyControllerDefinition[]; readonly store: SqliteControllerStore; readonly manager: ControllerManager; private running; private constructor(); static create(options: { cwd: string; startChild: PiChildWorkflowStarter; }): Promise; start(): void; stop(): Promise; close(): Promise; get isRunning(): boolean; list(): string; get(controller: string, key: string): string; apply(controller: string, key: string, spec: unknown): ControllerResource; reconcile(controller: string, key: string): void; delete(controller: string, key: string): void; }