import Base, { MaybeRaw } from "../../../Base"; import { AddCloudWatchDto, AddLogCollectorDto, CloudWatchDto, LogCollectorDto } from "../../../interfaces/agent/logging"; export declare class AgentLogging extends Base { /** * Retrieves a list of all currently registered and connected external logging destinations. * @returns List of active external log collector configurations */ getLogCollectors(raw?: { raw: R; }): Promise>; /** * Registers a new external destination and initializes a persistent Winston HTTP transport for log forwarding. * @param collector - The configuration for the new log collector * @returns The newly created log collector details */ addLogCollector(collector: AddLogCollectorDto, raw?: { raw: R; }): Promise>; /** * Retrieves configuration and status information for a specific external log collector by its name. * @param name - Unique identifier of the external log collector * @returns The requested log collector details */ getLogCollector(name: string, raw?: { raw: R; }): Promise>; /** * Removes an external log destination and immediately terminates the associated Winston transport. * @param name - Unique identifier of the external log collector to be deleted * @returns void (or raw response) */ deleteLogCollector(name: string, raw?: { raw: R; }): Promise>; /** * Updates the activation status of a specific log collector, * this toggles log forwarding to the destination without removing its configuration. * @param name - Unique identifier of the external log collector * @param enabled - Flag to enable or disable the collector * @returns The updated log collector details */ patchLogCollectorEnabled(name: string, enabled: boolean, raw?: { raw: R; }): Promise>; /** * Registers and initializes a new Amazon CloudWatch transport for log forwarding * @param options - AWS credentials and CloudWatch group/stream configuration * @returns The registered CloudWatch collector details */ addCloudWatch(options: AddCloudWatchDto, raw?: { raw: R; }): Promise>; /** * Removes the Amazon CloudWatch logging destination and terminates its Winston transport * @returns void (or raw response) */ deleteCloudWatch(raw?: { raw: R; }): Promise>; /** * Establishes a persistent Server-Sent Events (SSE) connection to stream logs in real-time. * Note: This method returns the raw Axios response because SSE requires stream handling. * @param level - Optional filter by severity level * @param entity - Optional filter by originating component * @returns Raw response with the event stream */ streamLogs(level?: string, entity?: string): Promise; protected getEndpoint(endpoint: string): string; }