import { type ExtensionAPI, type ExtensionContext } from "@earendil-works/pi-coding-agent"; import type { CoordinatorRuntime, OperationContext, TransientLaunchHandle, VerifiedLaunch } from "./runner.ts"; import { type ExecuteRequest, type ModelClass, type WorkspaceIdentity } from "./schema.ts"; export declare const ORCHESTRATOR_MODEL_TASK: { readonly id: "pi-orchestrator/roleLaunch"; readonly label: "Orchestrator Role launch"; readonly purpose: "Resolve one task-scoped orchestrator Role launch."; readonly defaultProfile: "balanced"; }; type LaunchPi = Pick; export interface LaunchRuntimeOptions { pi: LaunchPi; context(): ExtensionContext; resolveRoot(cwd: string, context: OperationContext): Promise; inspectMain(input: { root: string; }, context: OperationContext): Promise; now?: () => number; randomToken?: () => string; } export declare class RoleLaunchRuntime implements CoordinatorRuntime { private readonly options; constructor(options: LaunchRuntimeOptions); now(): number; randomToken(): string; private prepareLaunch; preflight(input: { request: ExecuteRequest; cwd: string; }, context: OperationContext): Promise<{ root: string; main: WorkspaceIdentity; }>; acquireLaunch(role: string, modelClass: ModelClass, context: OperationContext): Promise>; } export {};