/** * Shared AsyncLocalStorage for Keel permit ID tracking across SDK wrappers. * * Both vercel-ai.ts and langchain.ts import from here so there is a single * source of truth for getCurrentKeelPermitId() across the entire SDK. */ import { AsyncLocalStorage } from "node:async_hooks"; interface KeelPermitContext { permitId: string; } export declare const _permitStorage: AsyncLocalStorage; /** * Returns the permit ID most recently issued by a Keel wrapper in the current * async context. Call this inside a tool execute() handler to obtain the parent * permit ID for a nested LLM call. * * Limitation: works for sequential agent loops. For concurrent agents, pass * parentPermitId explicitly via the wrapper's options. */ export declare function getCurrentKeelPermitId(): string | undefined; export {};