UNPKG

@elastic.io/maester-client

Version:
13 lines (12 loc) 698 B
import { Readable } from 'stream'; import { uploadData, RetryOptions } from './interfaces'; export declare const parseJson: (source: string) => any; export declare const streamFromData: (data: uploadData) => Promise<Readable>; export declare const getFreshStreamChecker: () => (stream: Readable) => void; /** * if values are higher or lower the limit - they'll be overwritten. * returns valid values for RetryOptions */ export declare const validateAndGetRetryOptions: ({ retriesCount, requestTimeout }: RetryOptions) => RetryOptions; export declare const exponentialSleep: (currentRetries: number) => Promise<unknown>; export declare const exponentialDelay: (currentRetries: number) => number;