UNPKG

token-discord-checker

Version:

A comprehensive Discord token validation and verification tool

33 lines 1.15 kB
import { TokenValidationResult } from '../types/token.types'; /** * Discord token format validator * Validates token structure and format without making API calls */ export declare class FormatValidator { /** * Validate token format * @param token - The Discord token to validate * @returns Validation result with format details */ static validateFormat(token: string): TokenValidationResult; /** * Validate individual token parts structure * @param parts - Token parts array * @param errors - Errors array to append to * @param warnings - Warnings array to append to */ private static validateTokenStructure; /** * Extract user ID from token (if possible) * @param token - The Discord token * @returns User ID or null if extraction fails */ static extractUserId(token: string): string | null; /** * Get token creation timestamp (if possible) * @param token - The Discord token * @returns Timestamp or null if extraction fails */ static extractTimestamp(token: string): Date | null; } //# sourceMappingURL=format-validator.d.ts.map