UNPKG

@kya-os/agentshield-nextjs

Version:

Next.js middleware for AgentShield AI agent detection

26 lines (24 loc) 704 B
/** * Node.js Runtime WASM Loader for AgentShield * * This loader uses fs.readFileSync to load WASM in Node.js runtime. * It provides full cryptographic verification capabilities. */ /** * Load WASM module using Node.js fs module * This only works in Node.js runtime, not Edge Runtime */ declare function loadWasmNodejs(): Promise<boolean>; /** * Check if we're in Node.js runtime */ declare function isNodejsRuntime(): boolean; /** * Get the loaded WASM module */ declare function getWasmModule(): WebAssembly.Module | null; /** * Check if WASM is initialized */ declare function isWasmInitialized(): boolean; export { getWasmModule, isNodejsRuntime, isWasmInitialized, loadWasmNodejs };