export type AgentOpsRequest = (path: string, init?: RequestInit) => Promise<{ status: number; body: unknown; }>; export type ResultStatus = 'pass' | 'fail' | 'warn' | 'skip'; export interface ResultItem { name: string; status: ResultStatus; reason_code: string; message: string; } export interface ReasonGuide { reason_code: string; category: 'connectivity' | 'auth' | 'schema' | 'compatibility' | 'capacity' | 'security' | 'lifecycle' | 'internal'; action: string; } export interface AgentOpsOptions { endpoint?: string; apiKey?: string; json: boolean; timeoutMs: number; since: string; limit: number; } declare const REQUIRED_EVENTS: readonly ["SESSION_START", "USER_PROMPT", "TOOL_RESULT", "PRE_COMPACT", "STOP"]; export declare const SYNTHETIC_MARKER = "memento-doctor-secret"; export declare function reasonGuide(reasonCode: string): ReasonGuide; export declare function objectBody(value: unknown): Record; export declare function responseReason(status: number, body: unknown): string; export declare function item(name: string, status: ResultStatus, reasonCode: string, message: string): ResultItem; export declare function envelope(eventType: typeof REQUIRED_EVENTS[number], sessionId: string, sequenceNo: number, occurredAt: string, payload: Record, scope: Record): { contract_version: number; event_id: string; event_type: "SESSION_START" | "USER_PROMPT" | "TOOL_RESULT" | "PRE_COMPACT" | "STOP"; occurred_at: string; adapter_name: string; adapter_version: string; session_id: string; sequence_no: number; scope: Record; payload: Record; }; export declare function uniqueGuidance(items: readonly ResultItem[]): ReasonGuide[]; export declare function runDoctor(endpoint: string, request: AgentOpsRequest, now: () => Date, randomId: () => string): Promise<{ command: string; ok: boolean; checked_at: string; endpoint: string; checks: ResultItem[]; compatibility: { adapter: string; baseline: string; required_contract: number; status: string; missing_events: ("SESSION_START" | "USER_PROMPT" | "TOOL_RESULT" | "PRE_COMPACT" | "STOP")[]; }[]; guidance: ReasonGuide[]; }>; export declare function parseSince(value: string, now: Date): string; export declare function runStatus(endpoint: string, request: AgentOpsRequest, options: AgentOpsOptions, now: () => Date): Promise<{ command: string; ok: boolean; checked_at: string; endpoint: string; summary: unknown; guidance: ReasonGuide[]; }>; export declare function humanResult(result: Record): string; export {}; //# sourceMappingURL=agent-ops-core.d.ts.map