@infomatebot/chatbot-widget
Version:
Build intelligent chatbots using pre-designed conversation flows with quick reply options. Upload documents for AI-powered, context-aware responses and reduce support costs by 80% with guided conversations
21 lines • 1.09 kB
TypeScript
import type { MessageRequest } from '@/types/internal.types';
export declare function sanitizeInput(input: string): string;
export declare function sanitizeMessageRequest(messageRequest: MessageRequest): MessageRequest | undefined;
export declare function isValidJWTFormat(token: string): boolean;
export declare function storeSessionToken(token: string): void;
export declare function getStoredSessionToken(): string | null;
export declare function clearStoredSessionToken(): void;
export declare function validateConfig(config: any): boolean;
export declare function getSafeErrorMessage(error: string): string;
export declare function logSecureError(error: string, context?: string): void;
export declare function validateMessage(message: string): {
valid: boolean;
error?: string;
};
export declare function createRateLimiter(maxRequests: number, windowMs: number): {
isAllowed(): boolean;
getResetTime(): number;
};
export declare function generateRequestId(): string;
export declare function getBrowserInfo(): Record<string, any>;
//# sourceMappingURL=security.d.ts.map