import { Options } from "got"; import { Thing } from "schema-dts"; import { Merge } from "./types/types"; export declare type TypedLD = Extract; export declare type TypedThing = TypedLD; export declare type WebPageMeta = { alternate: any[]; applinks: { "android:app_name": string; "android:package": string; "android:url": string; "ios:app_name": string; "ios:app_store_id": string; "ios:url": string; "web:url": string; [key: string]: string; }; html: { author: string; canonical: string; description: string; robots: string; title: string; viewport: string; }; jsonld: (TypedThing & { "@context": any; })[]; rdfa: unknown; twitter: { "app:id:iphone": string; "app:name:iphone": string; "app:url:iphone": string; card: string; creator: string; description: string; "image:src": string; site: string; [key: string]: string; }; }; /** * Scrapes an article by getting metadata, parsing its main content, and returns parsed markdown and metadata * @param {String} url * The url to fetch passed to both the fetch params and for resolving urls in the main content markdown. * @param {...any} otherFetchParams * All other parameters are passed directly to a node-fetch call. * @returns * An object containing properties `articleBody` and `metadata` * @example * scrapeArticle("").then(function (article) { * console.log(article.metadata); * console.log(article.markdown); * }); */ export declare function scrapeMeta(url: string, options?: Merge): Promise<{ metadata: WebPageMeta | undefined; articleBody: string; }>; //# sourceMappingURL=metadata-fetcher.d.ts.map