UNPKG

581 BTypeScriptView Raw
1import { Context } from '../context/context';
2import { Token } from '../tokens/token';
3type HashValueTokens = Record<string, Token | undefined>;
4/**
5 * Key-Value Pairs Representing Tag Arguments
6 * Example:
7 * For the markup `, foo:'bar', coo:2 reversed %}`,
8 * hash['foo'] === 'bar'
9 * hash['coo'] === 2
10 * hash['reversed'] === undefined
11 */
12export declare class Hash {
13 hash: HashValueTokens;
14 constructor(markup: string, jekyllStyle?: boolean | string);
15 render(ctx: Context): Generator<unknown, Record<string, any>, unknown>;
16}
17export {};