import { Observable } from 'rxjs'; /** * Priority of the actual request */ export declare enum FETCH_PRIORITY { LOW = 0, NORMAL = 1, HIGH = 2 } /** * Callback interface used to make a GET request to the resource * and to ask for text content. * * The URL can be a relative URL and will be resolved against the API URL */ export declare type FetchText = (aUrl: string, aPriority?: FETCH_PRIORITY) => Observable; /** * Callback interface used to send data to the server. * * The URL can be a relative URL and will be resolved against the API URL */ export declare type WriteText = (aUrl: string, aBody: any, aPriority?: FETCH_PRIORITY) => Observable;