import { CommunicationObserver , ResponseStartedFn } from './results' ; import { ChunkCombiner } from './results/chunkCombiner' ; /**
 * Options for sending a request message.
 */ export interface SendOptions { /** HTTP method (POST, PUT, GET, PATCH ...) */ method : string ; /** Request HTTP headers. */ headers ? : { [ key ] : string ; } ; /** When specified, message body larger than the treshold is gzipped  */ gzipThreshold ? : number ; } /**
 * Simpified platform-neutral transport layer for communication with InfluxDB.
 */ export interface Transport { param path param requestBody param options param callbacks send ( path , requestBody , options , callbacks ? ) : void ; param path param requestBody param options request ( path , body , options , responseStarted ? ) : Promise < any > ; /**
     * Combines response chunks to create a single response object.
     */ readonly chunkCombiner : ChunkCombiner ; }