import * as hono12 from "hono";

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

/**
 * Middleware to enforce tenant access control.
 * Verifies that the authenticated user has access to the requested tenant/organization.
 *
 * Access rules:
 * - System user (bypass auth): Full access to all tenants
 * - API key user: Access only to the tenant associated with the API key
 * - Session user: Access based on organization membership
 */
declare const requireTenantAccess: () => hono12.MiddlewareHandler<{
  Variables: {
    userId: string;
    tenantId: string;
    tenantRole: string;
  };
}, string, {}, Response>;
//#endregion
export { requireTenantAccess };