import type { Socket } from 'socket.io';
type NextFunction = (err?: Error) => void;
export interface AuthenticatedSocket extends Socket {
    userId?: string;
    username?: string;
}
/**
 * Socket 认证中间件
 * 隧道请求（带 CF 头）必须携带有效 token，本地请求放行
 */
export declare function authMiddleware(socket: AuthenticatedSocket, next: NextFunction): void;
export {};
//# sourceMappingURL=auth.d.ts.map