import type { HtmlNodeObject } from './types'; import { ConvertToMarkdown } from './epub/options'; export type ParseSectionConfig = { id: string; htmlString: string; expand?: boolean; getFile: (path: string) => any; getItemId: (link: string) => string; }; export declare class Section { id: string; htmlString: string; htmlObjects?: HtmlNodeObject[]; private _getFile; private _getItemId; private _convertToMarkdown; constructor({ id, htmlString, getFile, getItemId, expand }: ParseSectionConfig); register(convertFunc: ConvertToMarkdown): Section; toMarkdown(): string; toHtmlObjects(): HtmlNodeObject[]; } declare const parseSection: (config: ParseSectionConfig) => Section; export default parseSection;