import { Cancellable } from './Cancellable' ; /**
 * Type of HTTP headers.
 */ export type Headers = { [ header ] : string | string [ ] | undefined ; } ; param headers param statusCode export type ResponseStartedFn = ( headers : Headers , statusCode ? : number ) => void ; /**
 * Observes communication with the server.
 */ export interface CommunicationObserver < T > { param data next ( data ) : void ; /**
     * Communication ended with an error.
     */ error ( error ) : void ; /**
     * Communication was successful.
     */ complete ( ) : void ; /**
     * Informs about a start of response processing.
     */ responseStarted ? : ResponseStartedFn ; /**
     * Setups cancelllable for this communication.
     */ useCancellable ? : ( cancellable : Cancellable ) => void ; }