import type { AuthUserDirectory } from "../contracts/authUserDirectory"; import type { ServiceContainerLike } from "../contracts/serviceContainer"; import type { AuthUser } from "./authContext"; import type { AuthGuard } from "./guard"; import { type JwtPayload } from "./jwt"; interface JwtGuardOptions { secret?: string; directory?: AuthUserDirectory; container?: ServiceContainerLike; } declare function authUserFromJwt(payload: JwtPayload): AuthUser; declare class JwtGuard implements AuthGuard { private readonly options; constructor(options?: JwtGuardOptions | ServiceContainerLike); resolve(request: Request): Promise; } export type { JwtGuardOptions }; export { authUserFromJwt, JwtGuard };