import { type PackScenarioAdapter, type ScenarioFault } from './scenario.js'; import { type ScenarioLedger } from './scenario-consume.js'; import type { PlacedFault } from './placements.js'; import type { ScenarioServed } from './sockets.js'; /** A request fault as the kernel's fault grammar answers it: `rejected` at the edge (503 unless named), `failed` and * `lost` as the vendor's server failure (500 unless named). */ export declare function kernelFault(fault: PlacedFault): ScenarioFault; /** A model vendor's turn: a placed fault whose `on` the request satisfies lands first (a `slow` one holds the turn, then * it is decided); then the first placed turn decision whose `on` it satisfies and whose answer it admits, else the * miss, the pack's labelled stub. What landed and what decided are recorded either way. */ export declare function serveTurn(asked: Req, ledger: ScenarioLedger, adapter: PackScenarioAdapter, signal?: AbortSignal): Promise; /** What a request fault answers in place of the vendor's answer: the vendor's own envelope where the pack renders one. */ export declare function faultAnswer(fault: PlacedFault, render: (() => { body: unknown; headers?: Record; } | undefined) | undefined, signal?: AbortSignal): Promise;