import { ModelRegistry } from "../../config/model-registry.js"; import { AnthropicSlowModeLanes } from "../../session/anthropic-slow-mode.js"; import type { ThreadService, WorkerPeer } from "../services.js"; import { type WireCallback } from "./support.js"; /** Worker function that builds, composes, and keeps its mirror of a main registry. */ type MirrorHost = WireCallback<[registry: ModelRegistry]>; /** Boot globals of {@link authService}. */ export interface AuthServiceGlobals { /** Main thread's slow-mode lane registry (a {@link RemoteSlowModeLanes} on the worker). */ readonly slowModeLanes: AnthropicSlowModeLanes; /** The worker hands main its mirror host at boot; {@link prewarmModelRegistryMirror} calls it. */ readonly attachMirrorHost: (host: MirrorHost) => void; } /** * Build worker `peer`'s mirror of `registry` now and compose its catalog * (`getAll`, `getAvailable`), so the first subagent session there finds it * warm. The mirror stays alive for the worker's life. Resolves once done; * rejects when the worker exits first. */ export declare function prewarmModelRegistryMirror(peer: WorkerPeer, registry: ModelRegistry): Promise; /** Auth, model registry, and slow-mode lane bridging for subagent workers. */ export declare const authService: ThreadService; export {};