import { type Config, type ConfigRef } from "../config.js"; import type { DeliveryLog } from "../delivery-log.js"; import { type Secrets } from "../env.js"; import type { Events } from "../events.js"; import type { JobStore } from "../jobs.js"; import type { Logger } from "../logger.js"; import type { Paths } from "../paths.js"; import type { JobQueue } from "../queue.js"; import type { SkillRegistry } from "../registry.js"; import { type Scheduler } from "../scheduler.js"; import type { ServerControl } from "../server.js"; import { type ApplyUpdateResult } from "../update.js"; import { type CommandHandler } from "./commands.js"; import { type ManagedSkills } from "./managed.js"; import type { CommandType } from "./protocol.js"; /** Top-level config keys the cloud may never change, whatever the mode: the bind address, what runs as the agent, and the link itself. */ export declare const CLOUD_DENIED_CONFIG_KEYS: string[]; export interface ControlDeps { paths: Paths; config: Config; configRef?: ConfigRef; secrets: () => Secrets; fileSecrets: () => Secrets; registry: SkillRegistry; store: JobStore; deliveryLog?: DeliveryLog; queue: JobQueue; events?: Events; logger: Logger; /** Restart through launchd / systemd (what `POST /control/restart` uses). */ serverControl?: ServerControl; /** The running scheduler, for `schedule.pause` / `schedule.resume`. */ scheduler?: Pick; /** Injectable for tests. */ applyUpdate?: (options: { install: boolean; }) => Promise; /** Cloud-managed skills, for `skills.sync` and `skill.adopt`. */ managed?: ManagedSkills; } export declare function createControlHandlers(deps: ControlDeps): Partial>;