UNPKG

brazejs

Version:

Liquid template engine for the Braze variant by pure JavaScript: compatible to Braze, easy to extend.

14 lines (13 loc) 536 B
import Context from '../../context/context'; import { FilterImplOptions } from './filter-impl-options'; export declare type FilterArgs = Array<string | [string?, string?]>; export declare class Filter { name: string; impl: FilterImplOptions; args: FilterArgs; private static impls; constructor(name: string, args: FilterArgs, strictFilters: boolean); render(value: any, context: Context): Promise<any>; static register(name: string, filter: FilterImplOptions): void; static clear(): void; }