export interface CheckExpect { /** The status (or any of several) that counts as good. Default: any 2xx. */ status?: number | number[]; /** The answer, body included (its first megabyte), must arrive within this many ms. */ maxMs?: number; /** Text the body must contain. */ bodyIncludes?: string; } export interface CheckSpec { /** Shown in the UI and in anomalies; unique in the file. */ name: string; /** A path ("/api/products") — sent to the app — or a full http(s) URL. */ url: string; /** Default GET. */ method?: string; headers?: Record; /** A string is sent as is; anything else as JSON. */ body?: unknown; /** Default 60, at least 5. */ everySeconds?: number; /** Default 10 000. */ timeoutMs?: number; expect?: CheckExpect; } /** A validated check with the defaults filled in. */ export interface Check { name: string; url: string; method: string; headers: Record; body?: string; everyMs: number; timeoutMs: number; expect: { status?: number[]; maxMs?: number; bodyIncludes?: string; }; } export declare const CHECK_DEFAULTS: { everySeconds: number; timeoutMs: number; }; /** Throws with a message that names the check and the field. */ export declare function validateCheck(raw: unknown): Check; /** Validates the whole file's export; names must be unique — results are kept by name. */ export declare function validateChecks(exported: unknown): Check[];