import { MemoryModificationGuard } from "./types.js"; import { MemoryGuardActor } from "./audit-emitter.js"; //#region src/guard/api-boundary-guard.d.ts /** * Options for `createApiBoundaryGuard(...)`. * * @stable */ interface ApiBoundaryGuardOptions { /** List of allowed `.` operations. */ readonly allowedOps: ReadonlyArray; /** * Returns the list of `.` operations observed during * the surrounding execution context. The host records each * `ctx.memory.*` call before it routes the call to the actual * memory store; the recorder is reset between snapshots. */ readonly observedOps: () => ReadonlyArray; /** * Optional actor pointer surfaced through audit events. */ readonly actor?: MemoryGuardActor; } /** * Construct an `API_BOUNDARY_GUARD`. * * @stable */ declare function createApiBoundaryGuard(opts: ApiBoundaryGuardOptions): MemoryModificationGuard; //#endregion export { ApiBoundaryGuardOptions, createApiBoundaryGuard }; //# sourceMappingURL=api-boundary-guard.d.ts.map