/** * Test-side helpers for `pylon test`. * * The CLI already starts each test FILE with a fresh in-memory database * (`PYLON_IN_MEMORY=1`), so tests across files never cross-contaminate. * This module covers the finer-grained case: isolating individual * `test(...)` blocks within a single file. * * Two integration patterns are supported: * * 1. **Manual** — call `resetDb()` from a `beforeEach` hook. * 2. **Automatic** — call `installTestIsolation()` at the top of the file * and every `test()` block runs with a reset store. * * Both require the test file to run under `pylon test` (not raw * `bun test`), because resetDb talks to the server via HTTP. */ /** * Reset the in-memory database to empty. Returns when the server confirms. * * Only works when the server is running in in-memory dev mode — production * deployments refuse this call. Safe to no-op when the reset endpoint is * unreachable so tests using this helper still work under raw `bun test` * (they just won't reset between cases). */ export declare function resetDb(baseUrl?: string): Promise; /** * Bun-friendly `beforeEach(resetDb)` installer. Looks up Bun's global * `beforeEach` via `globalThis`; no-ops under other runners. */ export declare function installTestIsolation(baseUrl?: string): void;