import { MemoryModificationGuard } from "./types.js"; import { MemoryGuardActor } from "./audit-emitter.js"; //#region src/guard/strict-full-guard.d.ts /** * Options for `createStrictFullGuard(...)`. * * @stable */ interface StrictFullGuardOptions { /** Optional actor pointer surfaced through audit events. */ readonly actor?: MemoryGuardActor; /** Hard ceiling on total snapshot bytes. Defaults to 200 KB per DEC-153. */ readonly maxMemoryBytes?: number; } /** * Construct a `STRICT_FULL_GUARD`. * * @stable */ declare function createStrictFullGuard(opts?: StrictFullGuardOptions): MemoryModificationGuard; /** * Raised by `STRICT_FULL_GUARD` when the total snapshot bytes exceed * the configured budget. Thrown from `snapshot(...)` so the caller * can deny the tool execution before the tool runs. * * @stable */ declare class MemoryGuardBudgetExceededError extends Error { readonly observedBytes: number; readonly maxBytes: number; readonly name = "MemoryGuardBudgetExceededError"; readonly kind = "memory-guard-budget-exceeded"; constructor(observedBytes: number, maxBytes: number); } //#endregion export { MemoryGuardBudgetExceededError, StrictFullGuardOptions, createStrictFullGuard }; //# sourceMappingURL=strict-full-guard.d.ts.map