import { FeedEntry } from "./feed_entry"; import { FeedStore } from "./feed_store"; /** * A FeedReader. */ export declare class FeedReader { readonly url: string; readonly store: FeedStore; private newlyEntries; /** * Creates a new FeedReader object. * * @param url - An URL of feed. * @param store - A [[FeedStore]] to store feeds. */ constructor(url: string, store: FeedStore); /** * Fetch a remote feed and extract new feed entries. * The result can also get from [[getNewlyEntries]]. * Do not forget calling [[save]] to save entries. * * @returns Fetched entries. */ fetch(): FeedEntry[]; /** * Save the entries that fetched but not saved yet. */ save(): void; /** * Get entries that fetched by [[fetch]] method but not saved yet. * * @returns Newly entries. */ getNewlyEntries(): FeedEntry[]; /** * Discard all not saved entries. * Note that feeds in store are not deleted. */ resetNewlyEntries(): void; }