export interface ValidationToken { accessKeyId: string; signatureHash: string; requestMetadata: { timestamp: number; clientIp: string; endpoint: string; method: string; headers: Record; }; challengeNonce: string; expiresAt: number; version: string; } export interface ValidationRequest { token: ValidationToken; stringToSign: string; clientSignature: string; requestId: string; } export interface ValidationResponse { valid: boolean; credentialMetadata?: { credentialId: string; permissions: Array<{ service: string; action: string; resource: string; effect: string; }>; region: string; sapAiRegion: string; userId: string; rateLimits: { requestsPerMinute: number; requestsPerHour: number; requestsPerDay: number; }; ipRestrictions?: Array<{ ipAddress?: string; ipRange?: string; isAllowed: boolean; }>; entitlement?: { catalogId: string; catalogName: string; mode: 'all' | 'list'; exclude?: string[]; include?: string[]; teamCatalogId?: string; teamCatalogName?: string; }; user?: { email: string; status: 'active' | 'deactivated'; roles: string[]; teamIds?: string[]; limits: { requestsPerMinute: number | null; spendPerDay: number | null; spendPerWeek: number | null; spendPerMonth: number | null; tokensPerDay: number | null; tokensPerWeek: number | null; tokensPerMonth: number | null; }; }; team?: { teamId: string; teamName: string; limits: NonNullable['user']>['limits']; }; teamToolPolicy?: any; }; validationToken: string; auditInfo: { requestId: string; validationTime: number; cacheHit: boolean; ipAllowed: boolean; signatureValid: boolean; }; error?: { code: string; message: string; details?: any; }; } export interface CachedValidationResult { validationResponse: ValidationResponse; timestamp: number; expiresAt: number; } export declare class ValidationTokenUtils { private static readonly ALGORITHM; private static readonly TOKEN_VERSION; private static readonly DEFAULT_TTL; private static getSecretKey; static createValidationToken(accessKeyId: string, clientSignature: string, requestMetadata: ValidationToken['requestMetadata'], ttl?: number): ValidationToken; static createValidationJWT(validationToken: ValidationToken, requestId: string): string; static verifyValidationJWT(jwt: string): ValidationToken & { requestId: string; }; static createCacheKey(accessKeyId: string, signatureHash: string): string; static isTokenExpired(token: ValidationToken): boolean; static isCacheExpired(cachedResult: CachedValidationResult): boolean; static hashRequestData(method: string, endpoint: string, headers: Record, timestamp: number): string; static generateRequestId(): string; static sanitizeForLogging(token: ValidationToken): any; static createErrorResponse(code: string, message: string, requestId: string, details?: any): ValidationResponse; } export declare class ValidationCache { private cache; private cleanupInterval; constructor(cleanupIntervalMs?: number); set(key: string, response: ValidationResponse, ttl?: number): void; get(key: string): ValidationResponse | null; delete(key: string): boolean; clear(): void; size(): number; private cleanup; getStats(): { size: number; expired: number; oldestEntry: number | null; newestEntry: number | null; }; destroy(): void; }