export type Expression = StringLiteral | Placeholder; export interface StringLiteral { readonly type: 'string-literal'; readonly literal: string; } export interface Placeholder { readonly type: 'placeholder'; readonly index: number; } export declare class StringTemplateParser { private readonly expression; private i; private placeholders; private tokens; constructor(expression: string); parseTemplate(): Expression[]; /** * Parse a string literal * * Cursor is expected to be on the first opening quote. Afterwards, * cursor will be after the closing quote. */ private parseStringLiteral; /** * Parse a bracketed expression * * Cursor is expected to be on the opening brace. Afterwards, * the cursor will be after the closing brace. */ private parsePlaceholder; /** * Parse a string literal * * Cursor is expected to be on the first opening quote. Afterwards, * cursor will be after the closing quote. */ private consumeString; private get eof(); private char; private next; private consume; private raiseError; } //# sourceMappingURL=parseStringTemplate.d.ts.map