@developer.notchatbot/webchat
Version:
A beautiful React chatbot widget with single-file bundle
36 lines (35 loc) • 909 B
TypeScript
export interface EndpointConfig {
baseUrl: string;
chatEndpoint: string;
uploadEndpoint: string;
rateEndpoint: string;
realtimeUrl: string;
}
/**
* Detecta si estamos en ambiente de desarrollo
*/
export declare function isDevelopmentEnvironment(): boolean;
/**
* Obtiene la configuración de endpoints según el ambiente
*/
export declare function getEndpointConfig(): EndpointConfig;
/**
* Obtiene el endpoint de chat
*/
export declare function getChatEndpoint(): string;
/**
* Obtiene el endpoint de upload
*/
export declare function getUploadEndpoint(): string;
/**
* Obtiene el endpoint de rating
*/
export declare function getRateEndpoint(): string;
/**
* Obtiene la URL base según el ambiente
*/
export declare function getBaseUrl(): string;
/**
* Obtiene la URL del servicio de tiempo real según el ambiente
*/
export declare function getRealtimeEndpoint(): string;