import { ManageAppVariables } from "../types/app.js";
import { ProjectPermissionLevel } from "@inkeep/agents-core";
import { ProjectScopedMiddleware } from "@inkeep/agents-core/middleware";

//#region src/middleware/projectAccess.d.ts

/**
 * Middleware to check project-level access.
 */
declare const requireProjectPermission: <Env extends {
  Variables: ManageAppVariables;
} = {
  Variables: ManageAppVariables;
}>(permission?: ProjectPermissionLevel) => ProjectScopedMiddleware<Env>;
//#endregion
export { requireProjectPermission };