import { MiddlewareHandler } from "hono"; //#region src/hono/authorizer.d.ts type Methods = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH'; type Auth = { isAuthenticated: (request: Request) => Promise; }; type AuthRule = string | { path: string; methods?: [Methods, ...Methods[]]; }; interface AuthorizerConfig { auth: Auth; errorMessage?: string; rules?: AuthRule[]; } declare function authorizer({ auth, errorMessage, rules }: AuthorizerConfig): MiddlewareHandler; //#endregion export { AuthRule, AuthorizerConfig, authorizer }; //# sourceMappingURL=authorizer.d.mts.map