UNPKG

bknd

Version:

Lightweight Firebase/Supabase alternative built to run anywhere — incl. Next.js, React Router, Astro, Cloudflare, Bun, Node, AWS Lambda & more.

12 lines (11 loc) 676 B
import { type Permission } from "../core"; import type { Context } from "hono"; import type { ServerEnv } from "../modules/Controller"; export declare function shouldSkip(c: Context<ServerEnv>, skip?: (string | RegExp)[]): boolean; export declare const auth: (options?: { skip?: (string | RegExp)[]; }) => import("hono").MiddlewareHandler<ServerEnv, string, {}>; export declare const permission: (permission: Permission | Permission[], options?: { onGranted?: (c: Context<ServerEnv>) => Promise<Response | void | undefined>; onDenied?: (c: Context<ServerEnv>) => Promise<Response | void | undefined>; }) => import("hono").MiddlewareHandler<ServerEnv, string, {}>;