import { Cache } from 'cache-manager';
import { AuthenticationService } from './authentication.service';
export declare class InvalidatedRefreshTokenError extends Error {
}
export declare class RefreshTokenIdsStorageService {
    private cacheManager;
    private readonly authenticationService;
    constructor(cacheManager: Cache, authenticationService: AuthenticationService);
    insert(userId: number, refreshToken: string, previousRefreshToken?: string): Promise<void>;
    validate(userId: number, refreshToken: string): Promise<boolean>;
    invalidate(userId: number): Promise<void>;
    validateAndRotate(user: any, refreshToken: string): Promise<string>;
    private getKey;
    getCurrentRefreshTokenState(userId: number): Promise<any>;
}
//# sourceMappingURL=refresh-token-ids-storage.service.d.ts.map