import type { Spec } from "@slowcook-ai/core"; /** * 0.14.0-α.1 (mockup-first refinement) — turn the spec's * `proposals.fixtures.by_domain` block into one `.mock.ts` * file per domain under `src/lib/data/`. * * Output shape (deterministic — no LLM in the loop): * * ```ts * // src/lib/data/notifications.mock.ts * // * // Auto-generated by slowcook refine for story-N (mockup-first * // data-layer seam). Hand-authored fixtures land here so the * // generated mockup is behaviorally complete without a real * // backend. Brew replaces the sibling `notifications.ts` (the * // throwing stub) with a real implementation; this file stays * // as reference data for tier-1 tests. * * export const list = [ * { id: "n-1", actor_handle: "@alice", read_at: null }, * ]; * * export const unread_count = 1; * ``` * * Pure: no LLM, no network, no filesystem walk — just JSON.stringify * + light formatting. Idempotent: writing the same fixtures produces * byte-identical output. */ export interface MockFixtureWriteResult { written: string[]; skippedReason?: string; } /** Marker brew searches for to identify files it should replace with real implementations. */ export declare const SLOWCOOK_STUB_MARKER: "@slowcook-stub"; export declare function writeMockFixtures(repoRoot: string, spec: Spec): MockFixtureWriteResult; export declare function renderStubFile(domain: string, storyId: string): string; export declare function renderMockFile(domain: string, storyId: string, seed: Record): string; /** #238 — the data-seam directory fixtures should land in. */ export declare function resolveDataSeamRoot(repoRoot: string): string; //# sourceMappingURL=mock-fixtures.d.ts.map