import type { MatchFail, MatchContext, StringPos, BaseEnv } from "generic-parser/lib/core"; import type { WithErrorRule } from "./util"; import type { SentenceChildEL } from "../../node/cst/inline"; export interface Env extends BaseEnv { currentIndentDepth: number; state: { parenthesesDepth: number; maxOffsetMatchFail: MatchFail | null; maxOffsetMatchContext: MatchContext | null; }; options: Record & Partial<{ reParenthesesInlineTextChars: RegExp; reOutsideParenthesesTextChars: RegExp; rePeriodSentenceTextChars: RegExp; inlineTokenRule: WithErrorRule; }>; } export interface InitialEnvOptions { options?: Env["options"]; baseOffset?: number; } export declare const initialEnv: (initialEnvOptions: InitialEnvOptions) => Env;