import { VerificationType } from '../../../../enums'; export type VerificationTokenData = { id: string | number; token: string; type: VerificationType; accountId: string | number; expiresAt?: Date; usedAt?: Date; }; export interface VerificationTokenService { useWith?(sessionManager: any): VerificationTokenService; find(token: string, type?: VerificationType): Promise; create(token: string, type: VerificationType, accountId: string | number, expiresAt?: Date): Promise; update(id: string | number, tokenData: Partial): Promise; delete(id: string | number): Promise; }