UNPKG

586 BTypeScriptView Raw
1import { Filter } from './filter';
2import { Expression } from '../render';
3import type { FilteredValueToken } from '../tokens';
4import type { Liquid } from '../liquid';
5import type { Context } from '../context';
6export declare class Value {
7 readonly filters: Filter[];
8 readonly initial: Expression;
9 /**
10 * @param str the value to be valuated, eg.: "foobar" | truncate: 3
11 */
12 constructor(input: string | FilteredValueToken, liquid: Liquid);
13 value(ctx: Context, lenient?: boolean): Generator<unknown, unknown, unknown>;
14 private getFilter;
15}