UNPKG

644 BTypeScriptView Raw
1import type { Commands, KeysOf, TemplateData } from './types';
2/** Parses and evaluates a template string. */
3export declare function consume<D extends TemplateData, P extends KeysOf<Omit<D, 'helpers'>>[]>(start: number, end: number, templates: string[], data: D, keys: Commands<P[number], D>[]): string;
4/** Parses and evaluates a single template and key of a template string. */
5export declare function consumeStep<D extends TemplateData, P extends KeysOf<Omit<D, 'helpers'>>[]>(templates: string[], data: D, keys: Commands<P[number], D>[], index: number): {
6 code?: string;
7 nextIndex?: number;
8};
9//# sourceMappingURL=consume.d.ts.map
\No newline at end of file