import { SEMANTIC_READER_ROUTES } from "./routes.js"; import { type SemanticUsageAggregate } from "./usage.js"; export declare const SEMANTIC_SERVICE_STATUS_SCHEMA_VERSION: 1; export type SemanticServiceState = "starting" | "running" | "stopping" | "stopped"; export type SemanticServiceErrorCode = "ledger_unavailable" | "semantic_pass_failed"; export interface SemanticServiceStatusRecord { schema_version: typeof SEMANTIC_SERVICE_STATUS_SCHEMA_VERSION; pid: number; host: string; nonce: string; state: SemanticServiceState; started_at: string; heartbeat_at: string; calls_per_hour?: number; sweep_count: number; pass_count: number; model_calls: number; cache_hits: number; process_usage?: SemanticUsageAggregate; last_sweep_at?: string; last_pass_at?: string; last_error_code?: SemanticServiceErrorCode; stopped_at?: string; } export interface SemanticServiceStatus { running: boolean; stale: boolean; record?: SemanticServiceStatusRecord; newest_successful_pass?: string; pending_count: number; rolling_calls?: { used: number; limit: number; available: number; eligible_after?: string; }; routes?: Array<{ harness: keyof typeof SEMANTIC_READER_ROUTES; configured_model: string; invocation_model_id: string; resolved_model_id?: string; model_attestation?: "verified" | "requested-only"; available?: boolean; reason_code?: string; }>; rolling_usage?: SemanticUsageAggregate; process_usage?: SemanticUsageAggregate; } /** Read-only service health. This module cannot spawn, signal, or write. */ export declare function readSemanticServiceStatus(coordRootRaw: string): SemanticServiceStatus; //# sourceMappingURL=service-status.d.ts.map