import type { Rule, Empty } from "generic-parser/lib/core"; import { __Text } from "../../node/el/controls"; import type { SentenceChildEL } from "../../node/cst/inline"; import { EL } from "../../node/el"; import type { Env } from "./env"; import type { ErrorMessage } from "./error"; export type ValueRule = Rule; export type WithErrorValue = { value: TValue; errors: ErrorMessage[]; }; export type WithErrorRule = Rule; export declare const enumAllELs: (el: EL | string) => EL[]; export declare const assertAllELsHaveRange: (elOrELs: EL | EL[]) => void; export declare const mergeAdjacentTexts: (inline: T[]) => (T | __Text)[]; export declare const mergeAdjacentTextsWithString: (inline: (string | T)[]) => (T | __Text)[]; export declare const separateTrailingSpaces: (inline: (string | T)[]) => { inline: (T | __Text)[]; spaces: string; };