import { t } from '../common'; export declare type HttpClientBodyType = 'JSON' | 'TEXT' | 'BINARY'; export declare type IHttpClientAsync = Promise>; export declare type IHttpClientResponse = { ok: boolean; status: number; body: T; bodyType: HttpClientBodyType; error?: t.IHttpError; }; export declare type HttpClient = { create(input?: string | number | t.IHttpClientOptions): t.IHttpClient; isClient(input?: any): boolean; isReachable(host: string): Promise; }; export declare type IHttpClient = t.Disposable & { readonly origin: string; readonly request$: t.Observable; readonly response$: t.Observable; info(): t.IHttpClientAsync; ns(input: string | t.INsUri | t.ICoordUri | t.IFileUri): IHttpClientNs; cell(input: string | t.ICellUri): IHttpClientCell; file(input: string | t.IFileUri): IHttpClientFile; toString(): string; }; export declare type IHttpClientOptions = { host?: string | number; http?: t.Http; }; export declare type IHttpClientNs = { readonly uri: t.INsUri; readonly url: t.IUrlsNs; exists(): Promise; read(options?: t.IReqQueryNsInfo): t.IHttpClientAsync; write(data: t.IReqPostNsBody, options?: t.IReqQueryNsWrite): t.IHttpClientAsync; toString(): string; }; export declare type IHttpClientCell = { readonly uri: t.ICellUri; readonly url: t.IUrlsCell; readonly db: t.IHttpClientCellDb; readonly fs: t.IHttpClientCellFs; readonly links: t.IHttpClientCellLinks; exists(): Promise; info(options?: t.IReqQueryCellInfo): t.IHttpClientAsync; toString(): string; }; export declare type IHttpClientFile = { readonly uri: t.IFileUri; readonly url: t.IUrlsFile; info(): t.IHttpClientAsync; toString(): string; }; export declare type IHttpClientFileData = t.IFileData & { uri: string; filename: string; dir: string; path: string; };