export type CheckLevel = "ok" | "warning" | "error"; export declare const DOCTOR_ENDPOINT_BODY_LIMIT_BYTES: number; export interface DoctorEndpointIdentity { application: string; version: string; instanceId: string; runtimeContractId?: string; } export interface DoctorCheck { name: string; level: CheckLevel; message: string; fixed?: boolean; identity?: DoctorEndpointIdentity; } /** 根据运行时配置生成本机管理与可观测端点的根 URL。 */ export declare function resolveGatewayBaseUrl(config: Record, environmentPort?: string): string; /** Web 管理页固定由本机 origin 提供,Router 前缀只用于 API 与探针。 */ export declare function resolveManagementWebUrl(config: Record, environmentPort?: string): string; /** 使用与监听器一致的 PORT 优先级解析可探测的 TCP 端口。 */ export declare function resolveGatewayPort(config: Record, environmentPort?: string): number; type DoctorEndpoint = "health" | "ready"; type DoctorFetch = (input: string, init?: RequestInit) => Promise; /** 探测运行中网关的健康端点;非 2xx 必须使 doctor 失败。 */ export declare function probeDoctorEndpoint(base: string, endpoint: DoctorEndpoint, fetcher?: DoctorFetch, expectedVersion?: string): Promise; /** 证明两份独立 HTTP 探针来自同一个应用版本和进程实例。 */ export declare function compareDoctorEndpointIdentities(health: DoctorCheck, readiness: DoctorCheck): DoctorCheck; /** 证明在线实例采用本地服务元数据描述的完整启动契约。 */ export declare function verifyDoctorRuntimeContract(identityCheck: DoctorCheck, expectedRuntimeContractId: string): DoctorCheck; export {}; //# sourceMappingURL=doctor-endpoint.d.ts.map