1 | import { Context } from '../../context/context';
|
2 | import { TagToken } from '../../tokens/tag-token';
|
3 | import { TopLevelToken } from '../../tokens/toplevel-token';
|
4 | import { TagImpl } from './tag-impl';
|
5 | import { HashValue } from '../../template/tag/hash';
|
6 | import { Emitter } from '../../emitters/emitter';
|
7 | export interface TagImplOptions {
|
8 | parse?: (this: TagImpl, token: TagToken, remainingTokens: TopLevelToken[]) => void;
|
9 | render: (this: TagImpl, ctx: Context, emitter: Emitter, hash: HashValue) => void | string | Promise<void | string> | Generator<unknown, void | string, unknown>;
|
10 | }
|