import type { GuardStrategy, GuardStrategyHandle } from './types.js'; /** * Register a guard for a collection. Guards run on every `put()` / * `delete()` for the named collection (after permissions, before * encryption) and may: * * - `check` — block writes by throwing (typically `RecordLockedError`) * - `frozenFields` — freeze specific fields once a condition is true * - `amendment` — declare an authorized-override path with invariant * * Pass the returned handle to `createNoydb({ strategies: [...] })`. * * @see docs/superpowers/specs/2026-05-18-guards-design.md */ export declare function withGuard>(strategy: GuardStrategy): GuardStrategyHandle;