import { Observable } from 'rxjs/internal/Observable'; import { Http } from './http'; /** * `useRxAjax` * * Executes data api calls and returns response and request dispatcher. * Optionally a callback function can be provided to react on response. * * Example: * const [response, dispatch] = useRxAjax(api.getSomething); * * @param api$ - Data API callback `(req: Req) => Observable`. * @param next - (optional) callback to be called when Response status is changed. */ export declare function useRxAjax(api$: (req: Req) => Observable, next?: (response: Http) => void): [Http | undefined, (req: Req) => void];