/**
 * NeuroLink Middleware System
 *
 * This module provides a comprehensive middleware system for NeuroLink that integrates
 * with the AI SDK's wrapLanguageModel functionality. It allows for modular enhancement
 * of language models with features like analytics, guardrails, caching, and more.
 */
import { MiddlewareFactory } from "./factory.js";
export type { NeuroLinkMiddleware, MiddlewareConfig, MiddlewareContext, MiddlewareConditions, MiddlewareRegistrationOptions, MiddlewareExecutionResult, MiddlewareChainStats, MiddlewarePreset, MiddlewareFactoryOptions, BuiltInMiddlewareType, } from "../types/middlewareTypes.js";
export type { LanguageModelMiddleware } from "ai";
export { MiddlewareFactory };
export { createLifecycleMiddleware } from "./builtin/lifecycle.js";
export default MiddlewareFactory;
