import { Client as ElasticClient } from '@elastic/elasticsearch'; import type { ILogPackage, ILogDestination } from '@pushrocks/smartlog-interfaces'; import { ElasticScheduler } from './elasticsearch.classes.elasticscheduler.js'; import { ElasticIndex } from './elasticsearch.classes.elasticindex.js'; export interface IStandardLogParams { message: string; severity: string; } export interface IElasticSearchConstructorOptions { indexPrefix: string; indexRetention: number; node: string; user?: string; pass?: string; } export declare class ElasticSearch { client: ElasticClient; elasticScheduler: ElasticScheduler; elasticIndex: ElasticIndex; indexPrefix: string; indexRetention: number; /** * sets up an instance of Elastic log * @param optionsArg */ constructor(optionsArg: IElasticSearchConstructorOptions); log(logPackageArg: ILogPackage, scheduleOverwrite?: boolean): Promise; get logDestination(): ILogDestination; }