import { DevToolsAgentConfig, DevToolsEvent, EventMeta } from './shared/types'; /** * Serviço central para envio de eventos ao backend DevTools */ export declare class DevtoolsService { private readonly logger; private readonly config; private readonly httpClient; private readonly buffer; constructor(config?: DevToolsAgentConfig); private getDisabledConfig; /** * Envia um evento para o backend DevTools */ sendEvent(event: DevToolsEvent): Promise; /** * Sanitiza evento antes de enviar */ private sanitizeEvent; /** * Adiciona evento ao buffer local */ private addToBuffer; /** * Tenta reenviar eventos do buffer */ flushBuffer(): Promise; /** * Delay helper para retry */ private delay; /** * Retorna estatísticas do buffer */ getBufferStats(): { size: number; maxSize: number; }; /** * Retorna a configuração atual do DevTools * Útil para interceptors e filters acessarem a config */ getConfig(): DevToolsAgentConfig; /** * Verifica se a captura de headers está habilitada */ shouldCaptureHeaders(): boolean; /** * Verifica se a captura de body está habilitada */ shouldCaptureBody(): boolean; /** * Verifica se a captura de response está habilitada */ shouldCaptureResponse(): boolean; /** * Verifica se a captura de response headers está habilitada */ shouldCaptureResponseHeaders(): boolean; /** * Verifica se a captura de sessão está habilitada */ shouldCaptureSession(): boolean; /** * Verifica se a captura de schedule está habilitada */ shouldCaptureSchedule(): boolean; /** * Verifica se a captura de HTTP Client está habilitada */ shouldCaptureHttpClient(): boolean; /** * Verifica se a captura de Redis está habilitada */ shouldCaptureRedis(): boolean; /** * Retorna o tamanho máximo do body a ser capturado */ getMaxBodySize(): number; /** * Retorna a lista de campos sensíveis */ getSensitiveFields(): string[]; /** * Retorna o ambiente configurado */ getEnvironment(): string; /** * Retorna a configuração do Redis (se disponível) */ getRedisConfig(): { host?: string; port?: number; password?: string; db?: number; } | undefined; } //# sourceMappingURL=devtools.service.d.ts.map