1 | import { NormalizedFullOptions, RenderOptions } from '../liquid-options';
|
2 | import { Scope } from './scope';
|
3 | declare type PropertyKey = string | number;
|
4 | export declare class Context {
|
5 | |
6 |
|
7 |
|
8 |
|
9 | private scopes;
|
10 | private registers;
|
11 | |
12 |
|
13 |
|
14 |
|
15 |
|
16 | environments: Scope;
|
17 | |
18 |
|
19 |
|
20 | globals: Scope;
|
21 | sync: boolean;
|
22 | |
23 |
|
24 |
|
25 | opts: NormalizedFullOptions;
|
26 | |
27 |
|
28 |
|
29 | strictVariables: boolean;
|
30 | constructor(env?: object, opts?: NormalizedFullOptions, renderOptions?: RenderOptions);
|
31 | getRegister(key: string): any;
|
32 | setRegister(key: string, value: any): any;
|
33 | saveRegister(...keys: string[]): [string, any][];
|
34 | restoreRegister(keyValues: [string, any][]): void;
|
35 | getAll(): Scope;
|
36 | get(paths: PropertyKey[]): object;
|
37 | getFromScope(scope: object, paths: PropertyKey[] | string): object;
|
38 | push(ctx: object): number;
|
39 | pop(): Scope | undefined;
|
40 | bottom(): Scope;
|
41 | private findScope;
|
42 | }
|
43 | export declare function readProperty(obj: Scope, key: PropertyKey, ownPropertyOnly: boolean): any;
|
44 | export declare function readJSProperty(obj: Scope, key: PropertyKey, ownPropertyOnly: boolean): any;
|
45 | export {};
|