import { BaseExecutionContext, ResolvedRef } from "@inkeep/agents-core";
import * as hono7 from "hono";

//#region src/middleware/projectConfig.d.ts
/**
 * Middleware that fetches the full project definition from the Management API
 */
declare const projectConfigMiddleware: hono7.MiddlewareHandler<{
  Variables: {
    executionContext: BaseExecutionContext;
    resolvedRef: ResolvedRef;
  };
}, string, {}, Response>;
/**
 * Creates a middleware that applies project config fetching except for specified route patterns
 * @param skipRouteCheck - Function that returns true if the route should skip the middleware
 */
declare const projectConfigMiddlewareExcept: (skipRouteCheck: (path: string) => boolean) => hono7.MiddlewareHandler<{
  Variables: {
    executionContext: BaseExecutionContext;
    resolvedRef: ResolvedRef;
  };
}, string, {}, Response>;
//#endregion
export { projectConfigMiddleware, projectConfigMiddlewareExcept };