//#region src/plugins/web-content-extractor-types.d.ts
/** Web content extraction mode requested from extractor plugins. */
type WebContentExtractMode = "markdown" | "text";
/** Request passed to a web content extractor plugin. */
type WebContentExtractionRequest = {
  html: string;
  url: string;
  extractMode: WebContentExtractMode;
};
/** Result returned by a web content extractor plugin. */
type WebContentExtractionResult = {
  text: string;
  title?: string;
};
/** Web content extractor plugin contract. */
type WebContentExtractorPlugin = {
  id: string;
  label: string;
  autoDetectOrder?: number;
  extract: (request: WebContentExtractionRequest) => Promise<WebContentExtractionResult | null>;
};
//#endregion
//#region extensions/web-readability/web-content-extractor.d.ts
export declare function createReadabilityWebContentExtractor(): WebContentExtractorPlugin;
//#endregion