/** * Feature extraction for blocks. * * Every feature is a plain number, boolean or string list, and every one is dumped by * `extract --explain`. A feature that cannot be shown to a human cannot be debugged when it causes * content to disappear, and that is the failure mode this project cares most about. */ import { type BlockFeatures } from './types'; export interface FeatureContext { /** Zero based block index. */ index: number; /** Total blocks in this representation. */ total: number; /** Character offset of the block start. */ start: number; /** Total characters in the representation. */ totalChars: number; quoteDepth: number; blockquoteDepth?: number; elementCount?: number; tags?: string[]; classes?: string[]; hasTopBorder?: boolean; linkCount?: number; imageCount?: number; } /** Compute the feature vector for a block's de-prefixed content. */ export declare function computeFeatures(content: string, context: FeatureContext): BlockFeatures; //# sourceMappingURL=features.d.ts.map