import type { Command } from 'commander'; import { HarnessDriverClient } from '@agent-relay/harness-driver'; import { type BrokerConnectionOptions } from '../lib/broker-connection.js'; export type AttachMode = 'drive' | 'view' | 'passthrough'; export type LocalAgentMessageBrokerOptions = BrokerConnectionOptions; /** Dispatch `local agent attach --mode` to the drive/view/passthrough session runners. */ export declare function runAttach(name: string, mode: AttachMode, options: { brokerUrl?: string; apiKey?: string; stateDir?: string; }): Promise; type ExitFn = (code: number) => never; export interface LocalAgentDependencies { connect: (cwd: string) => Promise; connectLocal: (cwd: string, options: LocalAgentMessageBrokerOptions) => Promise; attach: (name: string, mode: AttachMode, options: { brokerUrl?: string; apiKey?: string; stateDir?: string; }) => Promise; cwd: () => string; readConnectionFile: (stateDir: string) => unknown; getDefaultStateDir: () => string; env: NodeJS.ProcessEnv; fetch: typeof globalThis.fetch; log: (...args: unknown[]) => void; error: (...args: unknown[]) => void; exit: ExitFn; } /** * Register the `local agent …` subtree (and `runtime tail`) onto the driver * group. List/spawn/release/kill talk to a running local broker. */ export declare function registerLocalAgentCommands(group: Command, overrides?: Partial): void; export {}; //# sourceMappingURL=local-agent.d.ts.map