type Quote = "'" | '"' | null; /** A `$(` still open: the quote state to restore at its `)` and the plain `(` opened inside it. */ type Substitution = { parens: number; restore: Quote; }; /** The quote and `$(` nesting a line ends in, carried into the next line of one command. */ export type HeredocLineState = { quote: Quote; substitutions: Substitution[]; }; export declare function newHeredocLineState(): HeredocLineState; /** * Advances `state` over `char` (`next` follows it) and returns how many extra characters it * consumed, or undefined when `char` is plain text the caller still has to read. A `$(` saves the * quote it opened in, so the matching `)` restores that quote rather than leaving it unquoted. */ export declare function stepHeredocQuoteState(state: HeredocLineState, char: string, next: string | undefined): number | undefined; export {};