import type { Context, Next } from "hono"; declare module "hono" { interface ContextVariableMap { user: { id: string; email: string; tenantId: string; roles?: string[]; permissions?: string[]; }; session: { id: string; userId: string; tenantId?: string; }; } } /** * Authentication middleware - validates JWT tokens */ export declare const authMiddleware: (c: Context, next: Next) => Promise<(Response & import("hono").TypedResponse<{ success: false; error: { code: string; message: string; }; }, 401, "json">) | (Response & import("hono").TypedResponse<{ error: string; }, 401, "json">) | (Response & import("hono").TypedResponse<{ success: false; error: { code: string; message: string; }; }, 500, "json">) | undefined>; /** * Optional authentication middleware - doesn't require auth but adds user context if token present */ export declare const optionalAuthMiddleware: (c: Context, next: Next) => Promise; /** * Tenant context middleware - ensures user has access to specified tenant */ export declare const tenantContextMiddleware: (requireTenant?: boolean) => (c: Context, next: Next) => Promise<(Response & import("hono").TypedResponse<{ success: false; error: { code: string; message: string; }; }, 401, "json">) | (Response & import("hono").TypedResponse<{ success: false; error: { code: string; message: string; }; }, 400, "json">) | (Response & import("hono").TypedResponse<{ success: false; error: { code: string; message: string; }; }, 403, "json">) | (Response & import("hono").TypedResponse<{ success: false; error: { code: string; message: string; }; }, 500, "json">) | undefined>; export default authMiddleware; //# sourceMappingURL=auth.d.ts.map