/**
 * @specverse/engines/scenario-harness
 *
 * Framework-agnostic HTTP driver for API-level behavioral scenario tests.
 * Generated scenario tests import these verbs to drive a realized backend's
 * CURVED REST endpoints. Route conventions come from
 * `@specverse/types/spec-rules` (`deriveBasePath` + the canonical evolve
 * path), so the harness stays in lockstep with what realize emits — there
 * are no hard-coded route strings here.
 *
 * No frontend dependency: works against any realized backend (incl.
 * backend-only manifests). Uses global `fetch` (Node 18+).
 */
export interface ScenarioClient {
    baseUrl: string;
}
/**
 * Create a client pointing at a running realized backend. Defaults to
 * `SPECVERSE_API_URL` then `http://127.0.0.1:3000`.
 */
export declare function scenarioClient(baseUrl?: string): ScenarioClient;
export declare class ScenarioHttpError extends Error {
    op: string;
    model: string;
    status: number;
    bodyText: string;
    constructor(op: string, model: string, status: number, bodyText: string);
}
export declare function create(client: ScenarioClient, model: string, data: Record<string, unknown>): Promise<any>;
/** PATCH /api/<plural>/:id/evolve with `{ toState }` — matches the realized route. */
export declare function evolve(client: ScenarioClient, model: string, id: string, toState: string): Promise<any>;
export declare function retrieve(client: ScenarioClient, model: string, id: string): Promise<any>;
export declare function update(client: ScenarioClient, model: string, id: string, data: Record<string, unknown>): Promise<any>;
export declare function remove(client: ScenarioClient, model: string, id: string): Promise<void>;
/** Assert a resolved entity carries field === value (tolerant of `{data}` wrap). */
export declare function assertField(entity: any, field: string, value: unknown): void;
/** Assert the operation is rejected (rejects / throws). Throws if it succeeds. */
export declare function expectRejected(p: Promise<unknown>): Promise<void>;
//# sourceMappingURL=index.d.ts.map