import type { EntityMaskPattern, ParsedPage, RuleResult } from "../../types.js"; export interface AnswerFirstOptions { /** First paragraph should fit under this many words to be "extractable". Default: 100. */ maxFirstParagraphWords?: number; /** Opener longer than this is penalized as too long to extract. Default: 150. */ paragraphTooLongWords?: number; /** Minimum score-points for a passing opener. Default: 2. */ minScoreToPass?: number; } /** * Extract the first paragraph-ish content block after the H1. Walks the DOM in document * order starting at the H1 and finds the next `

` with >=5 words that is NOT inside a * nav/aside/footer/header/breadcrumb. Falls back to the first qualifying `

` inside * `main`/`article` if the H1-sibling walk finds nothing. */ export declare function extractFirstParagraph(html: string): string; export declare function answerFirstRule(pages: ParsedPage[], entityPatterns: EntityMaskPattern[], options?: AnswerFirstOptions): RuleResult[]; //# sourceMappingURL=answer-first.d.ts.map