export interface DiscoveredBatch { source: 'discovered' | 'seed'; models: DiscoveredModel[]; } export interface DiscoveredModel { modelId: string; label?: string; meta?: Record; } /** Parse a harness's raw discovery output (pure - no process is spawned). */ export declare function parseHarnessModels(harness: string, out: string): DiscoveredBatch | null; /** * Native discovery per harness — attempts the CLI, returns null on failure * (never throws). Callers treat null as "no models available" and skip * the push silently so a broken/absent CLI never blocks sessions. * * BLOCKING: prefer `discoverHarnessModelsAsync` from anything long-lived (the * daemon). This one exists for CLI commands that are already synchronous. */ export declare function discoverHarnessModels(harness: string): DiscoveredBatch | null; /** * Non-blocking discovery - the daemon's path. Identical parsing, but the * harness CLI runs as a real child process, so a slow or hung CLI cannot pin * the event loop (see `runResolvedAsync`). */ export declare function discoverHarnessModelsAsync(harness: string, timeoutMs?: number): Promise; /** Pushes one harness batch to the TeamShare catalog (agent-key auth). */ export declare function pushHarnessCatalog(baseUrl: string, apiKey: string, harness: string, batch: DiscoveredBatch): Promise;