import { ApiPromise } from "@polkadot/api"; import { BucketHash, Metrics } from "./metrics"; import { CHAIN } from "./chain-decorators"; export interface NetworkNodeInterface { name: string; wsUri?: string; prometheusUri?: string; apiInstance?: ApiPromise; } export declare class NetworkNode implements NetworkNodeInterface { name: string; wsUri: string; prometheusUri: string; prometheusPrefix: string; multiAddress: string; apiInstance?: ApiPromise; spec?: object | undefined; cachedMetrics?: Metrics; userDefinedTypes: any; para?: CHAIN; parachainId?: number; group?: string; constructor(name: string, wsUri: string, prometheusUri: string, multiAddress: string, userDefinedTypes?: any, prometheusPrefix?: string); connectApi(): Promise; restart(timeout?: number | null): Promise; pause(): Promise; resume(): Promise; isUp(timeout?: number): Promise; parachainIsRegistered(parachainId: number, timeout?: number): Promise; parachainBlockHeight(parachainId: number, desiredValue: number, timeout?: number): Promise; getMetric(rawMetricName: string, comparator?: string, desiredMetricValue?: number | null, timeout?: number): Promise; getCalcMetric(rawMetricNameA: string, rawMetricNameB: string, mathOp: string, comparator: string, desiredMetricValue: number, timeout?: number): Promise; getHistogramSamplesInBuckets(rawmetricName: string, buckets: string[], // empty string means all. desiredMetricValue?: number | null, timeout?: number): Promise; countPatternLines(pattern: string, isGlob: boolean, comparator: string, desiredMetricValue: number, timeout?: number): Promise; findPattern(pattern: string, isGlob: boolean, timeout?: number): Promise; run(scriptPath: string, args: string[], timeout?: number): Promise; getSpansByTraceId(traceId: string, collatorUrl: string): Promise; cleanMetricsCache(): void; _dedupLogs(logs: string[], useIndex: boolean | undefined, lastLogLineCheckedTimestamp: string, lastLogLineCheckedIndex: number): string[]; _getMetric(metricName: string, metricShouldExists?: boolean): number | undefined; _getSamplesCount(buckets: BucketHash, bucketKeys: string[]): number; }