import type { Server } from 'node:http'; import { type AppContext } from '../app-context.js'; export type TestServer = { dataDir: string; baseUrl: string; ctx: AppContext; server: Server; token: string; close: () => Promise; }; export declare function startTestServer(opts?: { adminPassword?: string; port?: number; }): Promise; export declare function apiJson(ts: TestServer, method: string, path: string, body?: unknown, opts?: { auth?: boolean; }): Promise<{ status: number; body: unknown; }>; /** Assert ops honesty shape — never treat fake success as pass. */ export declare function expectHonestOps(body: unknown): asserts body is { ok: boolean; notes?: string[]; apply_status?: string; requiresExecute?: boolean; blocked?: boolean; }; //# sourceMappingURL=harness.d.ts.map