import { U as User } from '../index-Dn-e4r-J.js';
import 'hono';
import '@hono/zod-openapi';
import '@mesob/common';
import '../index-D90p-4Uh.js';
import 'drizzle-orm/node-postgres';
import 'drizzle-orm';
import 'drizzle-orm/pg-core';
import 'pg';

type ContextWithUser = {
    get: (key: 'user') => User | undefined;
};
declare const hasRole: (c: ContextWithUser, role: string | string[]) => boolean;
declare const hasRoleThrow: (c: ContextWithUser, role: string | string[]) => void;
declare const hasPermission: (c: ContextWithUser, permission: string | string[]) => boolean;
declare const hasPermissionThrow: (c: ContextWithUser, permission: string | string[]) => void;

export { hasPermission, hasPermissionThrow, hasRole, hasRoleThrow };
