import { AbstractService } from '../../common/AbstractService.ts';
import { Package as PackageEntity } from '../entity/Package.ts';
import { type Token } from '../entity/Token.ts';
export declare class TokenService extends AbstractService {
    private readonly TokenPackage;
    private readonly Package;
    private readonly userRepository;
    listTokenPackages(token: Token): Promise<PackageEntity[] | null>;
    checkTokenStatus(token: Token): Promise<void>;
    checkGranularTokenAccess(token: Token, fullname: string): Promise<boolean>;
    getUserAndToken(authorization: string): Promise<{
        token: Token;
        user: import("../entity/User.ts").User;
    } | null>;
}
