import type { GatewayAuthConfig } from '../../../config/schema.js'; import type { ResolvedGatewayAuth } from '../../auth.js'; export interface AuthConfig { /** Current gateway auth from config (for rate-limit settings); optional. */ getGatewayAuth?: () => GatewayAuthConfig | undefined; getResolvedAuth?: () => ResolvedGatewayAuth; isPublicTunnelEnabled?: () => boolean; getTrustedProxyContext?: () => { trustedProxies?: string[]; allowRealIpFallback?: boolean; }; } export declare function auth(config?: AuthConfig): import("hono").MiddlewareHandler) | (Response & import("hono").TypedResponse<{ error: string; code: string; }, 401, "json">) | (Response & import("hono").TypedResponse<{ error: string; code: string; }, 403, "json">)>;