import { DefuddleOptions, DefuddleResponse } from './types'; export declare class Defuddle { private doc; private options; private debug; private _schemaOrgData; private _schemaOrgExtracted; private _metaTags; private _metadata; private _mobileStyles; private _smallImages; private _inExtractorPipelineRun; /** * Create a new Defuddle instance * @param doc - The document to parse * @param options - Options for parsing */ constructor(doc: Document, options?: DefuddleOptions); /** * Lazily extract and cache schema.org data. Must be called before * parse() strips script tags from the document. */ private getSchemaOrgData; /** * Parse the document and extract its main content */ parse(): DefuddleResponse; /** * Extract text content from schema.org data (e.g. SocialMediaPosting, Article) */ private _getSchemaText; /** * Serialize the body for the fallback/error paths, where extraction found * no content and we return the whole body. Sanitizes a CLONE so the * caller's live document is never mutated — stripping elements from the * live page (e.g. its