import { Request, Response, NextFunction } from "express"; import { ApiOptions } from "../../types/index.js"; export type User = { username: string; password: string; role?: string; }; export type AuthToken = { token: string; user: Omit; expiresAt: number; }; export declare class AuthService { private options; private tokens; private readonly SECRET_KEY; constructor(options: ApiOptions); authenticateUser(username: string, password: string): AuthToken | null; verifyToken(token: string): AuthToken | null; revokeToken(token: string): boolean; private generateToken; } export declare const createAuthMiddleware: (authService: AuthService, options: ApiOptions) => (req: Request, res: Response, next: NextFunction) => void;