import type { Line } from "../../../node/cst/line"; import * as std from "../../../law/std"; import type { SentenceChildEL } from "../../../node/cst/inline"; import type { WithErrorRule } from "../util"; import { EL } from "../../../node/el"; interface ParagraphItemToLinesOptions { firstArticleParagraphArticleTitle?: (string | SentenceChildEL)[]; secondaryArticleParagraph?: boolean; noControl?: boolean; defaultTag?: (typeof std.paragraphItemTags)[number]; } /** * The renderer for Paragraph, Item and subitem ({@link std.ParagraphItem | ParagraphItem}). Please see the source code for the detailed syntax, and the [test code](https://github.com/yamachig/Lawtext/blob/main/core/src/parser/std/rules/$paragraphItem.spec.ts) for examples. */ export declare const paragraphItemToLines: (el: std.ParagraphItem, indentTexts: string[], options?: ParagraphItemToLinesOptions) => Line[]; export declare const $autoParagraphItemChildrenOuter: WithErrorRule<(std.ParagraphItem["children"][number] | __AutoParagraphItem)[]>; type __AutoParagraphItem = EL & { tag: "__AutoParagraphItem"; }; export declare const isAutoParagraphItem: (el: EL | string) => el is __AutoParagraphItem; export declare const isAutoParagraphItemTitle: (el: EL | string) => el is __AutoParagraphItem; export declare const isAutoParagraphItemSentence: (el: EL | string) => el is __AutoParagraphItem; export declare const paragraphItemFromAuto: (defautTag: (typeof std.paragraphItemTags)[number], paragraphItem: std.ParagraphItem | __AutoParagraphItem) => std.ParagraphItem; export declare const $autoParagraphItem: WithErrorRule; export declare const $requireControlParagraphItem: WithErrorRule; /** * The parser rule for Paragraph, Item and subitem ({@link std.ParagraphItem | ParagraphItem}). Please see the source code for the detailed syntax, and the [test code](https://github.com/yamachig/Lawtext/blob/main/core/src/parser/std/rules/$paragraphItem.spec.ts) for examples. */ export declare const $paragraphItem: (defautTag: (typeof std.paragraphItemTags)[number]) => WithErrorRule; export declare const $noControlAnonymParagraph: WithErrorRule; export default $paragraphItem;