import { Cache } from 'redis-extension'; export declare abstract class OAuth2AbstractCache & { id: string; expires?: Date | string | number; }> { protected prefix: string; protected driver: Cache | undefined; protected constructor(prefix: string); set(entity: T): Promise; drop(id: T['id']): Promise; get(id: T['id']): Promise; protected isExpired(entity: T): Promise; protected useDriver(): Promise | undefined>; protected toDate(input: string | number | Date): Date; abstract loadDBEntity(id: T['id']): Promise; abstract deleteDBEntity(id: T['id']): Promise; } //# sourceMappingURL=abstract.d.ts.map