export type ShapeSchema = { required?: string[]; types?: Record; }; export type Query = { name: string; method?: "GET" | "POST"; path?: string; headers?: Record; body?: unknown; expect?: { contains?: string[]; equals?: Record; }; }; export type QueryVerdict = { name: string; verdict: "shape-valid" | "shape-invalid" | "confident-wrong" | "uncertain"; reason: string; offending?: string; status?: number; }; export type ApiContractResult = { results: QueryVerdict[]; shape_valid_count: number; confident_wrong_count: number; shape_invalid_count: number; uncertain_count: number; }; export declare function getPath(obj: unknown, path: string): unknown; export declare function validateShape(response: unknown, schema: ShapeSchema): { valid: boolean; offending?: string; reason: string; }; export declare function runApiContract(endpointUrl: string, queries: Query[], schema: ShapeSchema): Promise;