1 | import { IResolvable, IResolveContext } from '../resolvable';
|
2 |
|
3 |
|
4 |
|
5 |
|
6 | export interface IntrinsicProps {
|
7 | |
8 |
|
9 |
|
10 |
|
11 |
|
12 | readonly stackTrace?: boolean;
|
13 | }
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 | export declare class Intrinsic implements IResolvable {
|
24 | |
25 |
|
26 |
|
27 | readonly creationStack: string[];
|
28 | private readonly value;
|
29 | constructor(value: any, options?: IntrinsicProps);
|
30 | resolve(_context: IResolveContext): any;
|
31 | /**
|
32 | * Convert an instance of this Token to a string
|
33 | *
|
34 | * This method will be called implicitly by language runtimes if the object
|
35 | * is embedded into a string. We treat it the same as an explicit
|
36 | * stringification.
|
37 | */
|
38 | toString(): string;
|
39 | /**
|
40 | * Turn this Token into JSON
|
41 | *
|
42 | * Called automatically when JSON.stringify() is called on a Token.
|
43 | */
|
44 | toJSON(): any;
|
45 | /**
|
46 | * Creates a throwable Error object that contains the token creation stack trace.
|
47 | * @param message Error message
|
48 | */
|
49 | protected newError(message: string): any;
|
50 | }
|