jinaga
Version:
Data management for web and mobile applications.
14 lines • 828 B
TypeScript
import { Specification } from "../specification/specification";
import { FactReference, FactEnvelope } from "../storage";
import { Network } from "../managers/NetworkManager";
import { FeedResponse } from "./messages";
import { WebClient } from "./web-client";
export declare class HttpNetwork implements Network {
private readonly webClient;
constructor(webClient: WebClient);
feeds(start: FactReference[], specification: Specification): Promise<string[]>;
fetchFeed(feed: string, bookmark: string): Promise<FeedResponse>;
streamFeed(feed: string, bookmark: string, onResponse: (factReferences: FactReference[], nextBookmark: string) => Promise<void>, onError: (err: Error) => void): () => void;
load(factReferences: FactReference[]): Promise<FactEnvelope[]>;
}
//# sourceMappingURL=httpNetwork.d.ts.map