@algorandfoundation/puya-ts 1.0.0-alpha.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (242) hide show
  1. package/README.md +11 -0
  2. package/awst/index.d.ts +4 -0
  3. package/awst/intrinsic-factory.d.ts +35 -0
  4. package/awst/json-serialize-awst.d.ts +17 -0
  5. package/awst/models.d.ts +85 -0
  6. package/awst/node-factory.d.ts +90 -0
  7. package/awst/nodes.d.ts +841 -0
  8. package/awst/source-location.d.ts +21 -0
  9. package/awst/to-code-visitor.d.ts +87 -0
  10. package/awst/txn-fields.d.ts +84 -0
  11. package/awst/util.d.ts +2 -0
  12. package/awst/wtypes.d.ts +136 -0
  13. package/awst_build/base-visitor.d.ts +87 -0
  14. package/awst_build/constructor-visitor.d.ts +18 -0
  15. package/awst_build/context/awst-build-context.d.ts +72 -0
  16. package/awst_build/context/evaluation-context.d.ts +11 -0
  17. package/awst_build/context/switch-loop-context.d.ts +31 -0
  18. package/awst_build/context/unique-name-resolver.d.ts +14 -0
  19. package/awst_build/contract-data.d.ts +24 -0
  20. package/awst_build/contract-method-visitor.d.ts +20 -0
  21. package/awst_build/contract-visitor.d.ts +33 -0
  22. package/awst_build/decorator-visitor.d.ts +34 -0
  23. package/awst_build/eb/arc4/arrays.d.ts +31 -0
  24. package/awst_build/eb/arc4/uint-n-constructor-builder.d.ts +14 -0
  25. package/awst_build/eb/arc4-bare-method-decorator-builder.d.ts +19 -0
  26. package/awst_build/eb/assert-function-builder.d.ts +10 -0
  27. package/awst_build/eb/assert-match-function-builder.d.ts +8 -0
  28. package/awst_build/eb/biguint-expression-builder.d.ts +21 -0
  29. package/awst_build/eb/boolean-expression-builder.d.ts +15 -0
  30. package/awst_build/eb/bytes-expression-builder.d.ts +44 -0
  31. package/awst_build/eb/contract-builder.d.ts +19 -0
  32. package/awst_build/eb/ensure-budget.d.ts +8 -0
  33. package/awst_build/eb/folding.d.ts +5 -0
  34. package/awst_build/eb/free-subroutine-expression-builder.d.ts +22 -0
  35. package/awst_build/eb/index.d.ts +90 -0
  36. package/awst_build/eb/intrinsic-enum-builder.d.ts +9 -0
  37. package/awst_build/eb/iterable-iterator-expression-builder.d.ts +10 -0
  38. package/awst_build/eb/literal/array-literal-expression-builder.d.ts +18 -0
  39. package/awst_build/eb/literal/big-int-literal-expression-builder.d.ts +17 -0
  40. package/awst_build/eb/literal/conditional-expression-builder.d.ts +22 -0
  41. package/awst_build/eb/literal/object-expression-builder.d.ts +13 -0
  42. package/awst_build/eb/literal/object-literal-expression-builder.d.ts +28 -0
  43. package/awst_build/eb/literal-expression-builder.d.ts +27 -0
  44. package/awst_build/eb/log-function-builder.d.ts +7 -0
  45. package/awst_build/eb/namespace-builder.d.ts +9 -0
  46. package/awst_build/eb/native-array-expression-builder.d.ts +8 -0
  47. package/awst_build/eb/omitted-expression-builder.d.ts +9 -0
  48. package/awst_build/eb/op-module-builder.d.ts +25 -0
  49. package/awst_build/eb/reference/account.d.ts +15 -0
  50. package/awst_build/eb/reference/application.d.ts +12 -0
  51. package/awst_build/eb/reference/asset.d.ts +13 -0
  52. package/awst_build/eb/reference/base.d.ts +37 -0
  53. package/awst_build/eb/storage/box.d.ts +50 -0
  54. package/awst_build/eb/storage/global-state.d.ts +29 -0
  55. package/awst_build/eb/storage/local-state.d.ts +32 -0
  56. package/awst_build/eb/storage/util.d.ts +5 -0
  57. package/awst_build/eb/storage/value-proxy.d.ts +22 -0
  58. package/awst_build/eb/string-expression-builder.d.ts +27 -0
  59. package/awst_build/eb/transactions/group-transactions.d.ts +15 -0
  60. package/awst_build/eb/transactions/inner-transaction-params.d.ts +19 -0
  61. package/awst_build/eb/transactions/inner-transactions.d.ts +10 -0
  62. package/awst_build/eb/transactions/txn-fields.d.ts +1317 -0
  63. package/awst_build/eb/transactions/util.d.ts +5 -0
  64. package/awst_build/eb/tuple-expression-builder.d.ts +12 -0
  65. package/awst_build/eb/uint64-enum-type-builder.d.ts +13 -0
  66. package/awst_build/eb/uint64-expression-builder.d.ts +21 -0
  67. package/awst_build/eb/urange-function.d.ts +7 -0
  68. package/awst_build/eb/util/arg-parsing.d.ts +106 -0
  69. package/awst_build/eb/util/compare-bytes.d.ts +5 -0
  70. package/awst_build/eb/util/compare-uint64.d.ts +5 -0
  71. package/awst_build/eb/util/index.d.ts +19 -0
  72. package/awst_build/eb/util/require-constant-value.d.ts +4 -0
  73. package/awst_build/eb/void-expression-builder.d.ts +7 -0
  74. package/awst_build/function-visitor.d.ts +45 -0
  75. package/awst_build/index.d.ts +5 -0
  76. package/awst_build/lib/index.d.ts +2 -0
  77. package/awst_build/op-metadata.d.ts +27 -0
  78. package/awst_build/ptypes/arc4-types.d.ts +56 -0
  79. package/awst_build/ptypes/base.d.ts +31 -0
  80. package/awst_build/ptypes/index.d.ts +464 -0
  81. package/awst_build/ptypes/intrinsic-enum-type.d.ts +14 -0
  82. package/awst_build/ptypes/op-ptypes.d.ts +6 -0
  83. package/awst_build/ptypes/register.d.ts +2 -0
  84. package/awst_build/ptypes/transient-type-errors.d.ts +14 -0
  85. package/awst_build/source-file-visitor.d.ts +21 -0
  86. package/awst_build/subroutine-visitor.d.ts +10 -0
  87. package/awst_build/symbol-name.d.ts +10 -0
  88. package/awst_build/text-visitor.d.ts +20 -0
  89. package/awst_build/type-registry.d.ts +61 -0
  90. package/awst_build/type-resolver.d.ts +18 -0
  91. package/bin/run-cli.d.ts +2 -0
  92. package/bin/run-cli.mjs +21 -0
  93. package/bin/run-cli.mjs.map +1 -0
  94. package/cli.d.ts +1 -0
  95. package/cli.mjs +161 -0
  96. package/cli.mjs.map +1 -0
  97. package/compile-options.d.ts +23 -0
  98. package/constants.d.ts +20 -0
  99. package/errors.d.ts +46 -0
  100. package/index-GbFBpbmB.js +16444 -0
  101. package/index-GbFBpbmB.js.map +1 -0
  102. package/index.d.ts +31 -0
  103. package/index.mjs +16 -0
  104. package/index.mjs.map +1 -0
  105. package/logger.d.ts +39 -0
  106. package/node_modules/typescript/LICENSE.txt +55 -0
  107. package/node_modules/typescript/README.md +50 -0
  108. package/node_modules/typescript/SECURITY.md +41 -0
  109. package/node_modules/typescript/ThirdPartyNoticeText.txt +193 -0
  110. package/node_modules/typescript/bin/tsc +2 -0
  111. package/node_modules/typescript/bin/tsserver +2 -0
  112. package/node_modules/typescript/lib/cancellationToken.js +90 -0
  113. package/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +2087 -0
  114. package/node_modules/typescript/lib/de/diagnosticMessages.generated.json +2087 -0
  115. package/node_modules/typescript/lib/es/diagnosticMessages.generated.json +2087 -0
  116. package/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +2087 -0
  117. package/node_modules/typescript/lib/it/diagnosticMessages.generated.json +2087 -0
  118. package/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +2087 -0
  119. package/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +2087 -0
  120. package/node_modules/typescript/lib/lib.d.ts +22 -0
  121. package/node_modules/typescript/lib/lib.decorators.d.ts +386 -0
  122. package/node_modules/typescript/lib/lib.decorators.legacy.d.ts +22 -0
  123. package/node_modules/typescript/lib/lib.dom.asynciterable.d.ts +41 -0
  124. package/node_modules/typescript/lib/lib.dom.d.ts +28087 -0
  125. package/node_modules/typescript/lib/lib.dom.iterable.d.ts +491 -0
  126. package/node_modules/typescript/lib/lib.es2015.collection.d.ts +147 -0
  127. package/node_modules/typescript/lib/lib.es2015.core.d.ts +597 -0
  128. package/node_modules/typescript/lib/lib.es2015.d.ts +28 -0
  129. package/node_modules/typescript/lib/lib.es2015.generator.d.ts +77 -0
  130. package/node_modules/typescript/lib/lib.es2015.iterable.d.ts +527 -0
  131. package/node_modules/typescript/lib/lib.es2015.promise.d.ts +81 -0
  132. package/node_modules/typescript/lib/lib.es2015.proxy.d.ts +128 -0
  133. package/node_modules/typescript/lib/lib.es2015.reflect.d.ts +144 -0
  134. package/node_modules/typescript/lib/lib.es2015.symbol.d.ts +46 -0
  135. package/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts +326 -0
  136. package/node_modules/typescript/lib/lib.es2016.array.include.d.ts +116 -0
  137. package/node_modules/typescript/lib/lib.es2016.d.ts +21 -0
  138. package/node_modules/typescript/lib/lib.es2016.full.d.ts +23 -0
  139. package/node_modules/typescript/lib/lib.es2016.intl.d.ts +31 -0
  140. package/node_modules/typescript/lib/lib.es2017.d.ts +25 -0
  141. package/node_modules/typescript/lib/lib.es2017.date.d.ts +31 -0
  142. package/node_modules/typescript/lib/lib.es2017.full.d.ts +23 -0
  143. package/node_modules/typescript/lib/lib.es2017.intl.d.ts +44 -0
  144. package/node_modules/typescript/lib/lib.es2017.object.d.ts +49 -0
  145. package/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts +135 -0
  146. package/node_modules/typescript/lib/lib.es2017.string.d.ts +45 -0
  147. package/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts +53 -0
  148. package/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts +77 -0
  149. package/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts +53 -0
  150. package/node_modules/typescript/lib/lib.es2018.d.ts +24 -0
  151. package/node_modules/typescript/lib/lib.es2018.full.d.ts +24 -0
  152. package/node_modules/typescript/lib/lib.es2018.intl.d.ts +83 -0
  153. package/node_modules/typescript/lib/lib.es2018.promise.d.ts +30 -0
  154. package/node_modules/typescript/lib/lib.es2018.regexp.d.ts +37 -0
  155. package/node_modules/typescript/lib/lib.es2019.array.d.ts +79 -0
  156. package/node_modules/typescript/lib/lib.es2019.d.ts +24 -0
  157. package/node_modules/typescript/lib/lib.es2019.full.d.ts +24 -0
  158. package/node_modules/typescript/lib/lib.es2019.intl.d.ts +23 -0
  159. package/node_modules/typescript/lib/lib.es2019.object.d.ts +33 -0
  160. package/node_modules/typescript/lib/lib.es2019.string.d.ts +37 -0
  161. package/node_modules/typescript/lib/lib.es2019.symbol.d.ts +24 -0
  162. package/node_modules/typescript/lib/lib.es2020.bigint.d.ts +727 -0
  163. package/node_modules/typescript/lib/lib.es2020.d.ts +27 -0
  164. package/node_modules/typescript/lib/lib.es2020.date.d.ts +42 -0
  165. package/node_modules/typescript/lib/lib.es2020.full.d.ts +24 -0
  166. package/node_modules/typescript/lib/lib.es2020.intl.d.ts +474 -0
  167. package/node_modules/typescript/lib/lib.es2020.number.d.ts +28 -0
  168. package/node_modules/typescript/lib/lib.es2020.promise.d.ts +47 -0
  169. package/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts +97 -0
  170. package/node_modules/typescript/lib/lib.es2020.string.d.ts +42 -0
  171. package/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts +41 -0
  172. package/node_modules/typescript/lib/lib.es2021.d.ts +23 -0
  173. package/node_modules/typescript/lib/lib.es2021.full.d.ts +24 -0
  174. package/node_modules/typescript/lib/lib.es2021.intl.d.ts +166 -0
  175. package/node_modules/typescript/lib/lib.es2021.promise.d.ts +48 -0
  176. package/node_modules/typescript/lib/lib.es2021.string.d.ts +33 -0
  177. package/node_modules/typescript/lib/lib.es2021.weakref.d.ts +76 -0
  178. package/node_modules/typescript/lib/lib.es2022.array.d.ts +121 -0
  179. package/node_modules/typescript/lib/lib.es2022.d.ts +26 -0
  180. package/node_modules/typescript/lib/lib.es2022.error.d.ts +73 -0
  181. package/node_modules/typescript/lib/lib.es2022.full.d.ts +24 -0
  182. package/node_modules/typescript/lib/lib.es2022.intl.d.ts +121 -0
  183. package/node_modules/typescript/lib/lib.es2022.object.d.ts +26 -0
  184. package/node_modules/typescript/lib/lib.es2022.regexp.d.ts +39 -0
  185. package/node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts +39 -0
  186. package/node_modules/typescript/lib/lib.es2022.string.d.ts +25 -0
  187. package/node_modules/typescript/lib/lib.es2023.array.d.ts +924 -0
  188. package/node_modules/typescript/lib/lib.es2023.collection.d.ts +21 -0
  189. package/node_modules/typescript/lib/lib.es2023.d.ts +22 -0
  190. package/node_modules/typescript/lib/lib.es2023.full.d.ts +24 -0
  191. package/node_modules/typescript/lib/lib.es2023.intl.d.ts +56 -0
  192. package/node_modules/typescript/lib/lib.es5.d.ts +4585 -0
  193. package/node_modules/typescript/lib/lib.es6.d.ts +23 -0
  194. package/node_modules/typescript/lib/lib.esnext.array.d.ts +35 -0
  195. package/node_modules/typescript/lib/lib.esnext.collection.d.ts +106 -0
  196. package/node_modules/typescript/lib/lib.esnext.d.ts +29 -0
  197. package/node_modules/typescript/lib/lib.esnext.decorators.d.ts +28 -0
  198. package/node_modules/typescript/lib/lib.esnext.disposable.d.ts +193 -0
  199. package/node_modules/typescript/lib/lib.esnext.full.d.ts +24 -0
  200. package/node_modules/typescript/lib/lib.esnext.intl.d.ts +21 -0
  201. package/node_modules/typescript/lib/lib.esnext.iterator.d.ts +148 -0
  202. package/node_modules/typescript/lib/lib.esnext.object.d.ts +29 -0
  203. package/node_modules/typescript/lib/lib.esnext.promise.d.ts +35 -0
  204. package/node_modules/typescript/lib/lib.esnext.regexp.d.ts +25 -0
  205. package/node_modules/typescript/lib/lib.esnext.string.d.ts +29 -0
  206. package/node_modules/typescript/lib/lib.scripthost.d.ts +322 -0
  207. package/node_modules/typescript/lib/lib.webworker.asynciterable.d.ts +41 -0
  208. package/node_modules/typescript/lib/lib.webworker.d.ts +9410 -0
  209. package/node_modules/typescript/lib/lib.webworker.importscripts.d.ts +23 -0
  210. package/node_modules/typescript/lib/lib.webworker.iterable.d.ts +288 -0
  211. package/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +2087 -0
  212. package/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +2087 -0
  213. package/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +2087 -0
  214. package/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +2087 -0
  215. package/node_modules/typescript/lib/tsc.js +130769 -0
  216. package/node_modules/typescript/lib/tsserver.js +623 -0
  217. package/node_modules/typescript/lib/tsserverlibrary.d.ts +17 -0
  218. package/node_modules/typescript/lib/tsserverlibrary.js +21 -0
  219. package/node_modules/typescript/lib/typesMap.json +497 -0
  220. package/node_modules/typescript/lib/typescript.d.ts +11329 -0
  221. package/node_modules/typescript/lib/typescript.js +196072 -0
  222. package/node_modules/typescript/lib/typingsInstaller.js +236 -0
  223. package/node_modules/typescript/lib/watchGuard.js +53 -0
  224. package/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +2087 -0
  225. package/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +2087 -0
  226. package/node_modules/typescript/package.json +121 -0
  227. package/package.json +43 -0
  228. package/parser/index.d.ts +13 -0
  229. package/parser/json-serialize-source-files.d.ts +2 -0
  230. package/parser/resolve-module-name-literals.d.ts +2 -0
  231. package/puya/build-compilation-set-mapping.d.ts +9 -0
  232. package/puya/index.d.ts +13 -0
  233. package/puya/options.d.ts +29 -0
  234. package/puya/run-child-proc.d.ts +5 -0
  235. package/util/base-32.d.ts +2 -0
  236. package/util/base-85.d.ts +10 -0
  237. package/util/default-map.d.ts +1 -0
  238. package/util/generate-temp-file.d.ts +9 -0
  239. package/util/index.d.ts +47 -0
  240. package/visitor/syntax-names.d.ts +441 -0
  241. package/visitor/visitor.d.ts +26 -0
  242. package/write-artifact.d.ts +12 -0
@@ -0,0 +1,37 @@
1
+ import type { Expression } from '../../../awst/nodes';
2
+ import type { SourceLocation } from '../../../awst/source-location';
3
+ import type { PType } from '../../ptypes';
4
+ import type { BuilderComparisonOp, InstanceBuilder, NodeBuilder } from '../index';
5
+ import { InstanceExpressionBuilder } from '../index';
6
+ export type FieldMapping = Record<string, [string, PType]>;
7
+ export declare abstract class ReferenceTypeExpressionBuilder extends InstanceExpressionBuilder<PType> {
8
+ protected options: {
9
+ ptype: PType;
10
+ backingType: PType;
11
+ backingMember: string;
12
+ fieldMapping: FieldMapping;
13
+ fieldOpCode: string;
14
+ fieldBoolComment: string;
15
+ };
16
+ constructor(expr: Expression, options: {
17
+ ptype: PType;
18
+ backingType: PType;
19
+ backingMember: string;
20
+ fieldMapping: FieldMapping;
21
+ fieldOpCode: string;
22
+ fieldBoolComment: string;
23
+ });
24
+ memberAccess(name: string, sourceLocation: SourceLocation): NodeBuilder;
25
+ }
26
+ export declare abstract class Uint64BackedReferenceTypeExpressionBuilder extends ReferenceTypeExpressionBuilder {
27
+ constructor(expr: Expression, options: {
28
+ ptype: PType;
29
+ backingMember: string;
30
+ fieldMapping: FieldMapping;
31
+ fieldOpCode: string;
32
+ fieldBoolComment: string;
33
+ });
34
+ toBytes(sourceLocation: SourceLocation): Expression;
35
+ boolEval(sourceLocation: SourceLocation, negate?: boolean): Expression;
36
+ compare(other: InstanceBuilder, op: BuilderComparisonOp, sourceLocation: SourceLocation): InstanceBuilder;
37
+ }
@@ -0,0 +1,50 @@
1
+ import type { BoxValueExpression, Expression } from '../../../awst/nodes';
2
+ import type { SourceLocation } from '../../../awst/source-location';
3
+ import { AppStorageDeclaration } from '../../contract-data';
4
+ import type { ContractClassPType, PType } from '../../ptypes';
5
+ import { BoxMapPType, BoxPType, BoxRefPType } from '../../ptypes';
6
+ import type { InstanceBuilder, NodeBuilder } from '../index';
7
+ import { FunctionBuilder, InstanceExpressionBuilder } from '../index';
8
+ export declare class BoxFunctionBuilder extends FunctionBuilder {
9
+ call(args: ReadonlyArray<InstanceBuilder>, typeArgs: ReadonlyArray<PType>, sourceLocation: SourceLocation): NodeBuilder;
10
+ }
11
+ export declare class BoxRefFunctionBuilder extends FunctionBuilder {
12
+ call(args: ReadonlyArray<InstanceBuilder>, typeArgs: ReadonlyArray<PType>, sourceLocation: SourceLocation): NodeBuilder;
13
+ }
14
+ export declare class BoxMapFunctionBuilder extends FunctionBuilder {
15
+ call(args: ReadonlyArray<InstanceBuilder>, typeArgs: ReadonlyArray<PType>, sourceLocation: SourceLocation): NodeBuilder;
16
+ }
17
+ export declare abstract class BoxProxyExpressionBuilder<TProxyType extends BoxMapPType | BoxRefPType | BoxPType> extends InstanceExpressionBuilder<TProxyType> {
18
+ buildStorageDeclaration(memberName: string, memberLocation: SourceLocation, contractType: ContractClassPType): AppStorageDeclaration;
19
+ }
20
+ export declare class BoxMapExpressionBuilder extends BoxProxyExpressionBuilder<BoxMapPType> {
21
+ constructor(expr: Expression, ptype: PType);
22
+ memberAccess(name: string, sourceLocation: SourceLocation): NodeBuilder;
23
+ }
24
+ export declare class BoxRefExpressionBuilder extends BoxProxyExpressionBuilder<BoxRefPType> {
25
+ constructor(expr: Expression, ptype: PType);
26
+ memberAccess(name: string, sourceLocation: SourceLocation): NodeBuilder;
27
+ }
28
+ export declare abstract class BoxRefBaseFunctionBuilder extends FunctionBuilder {
29
+ protected readonly boxValue: BoxValueExpression;
30
+ constructor(boxValue: BoxValueExpression);
31
+ }
32
+ export declare class BoxRefCreateFunctionBuilder extends BoxRefBaseFunctionBuilder {
33
+ call(args: ReadonlyArray<InstanceBuilder>, typeArgs: ReadonlyArray<PType>, sourceLocation: SourceLocation): NodeBuilder;
34
+ }
35
+ export declare class BoxRefExtractFunctionBuilder extends BoxRefBaseFunctionBuilder {
36
+ call(args: ReadonlyArray<InstanceBuilder>, typeArgs: ReadonlyArray<PType>, sourceLocation: SourceLocation): NodeBuilder;
37
+ }
38
+ export declare class BoxRefReplaceFunctionBuilder extends BoxRefBaseFunctionBuilder {
39
+ call(args: ReadonlyArray<InstanceBuilder>, typeArgs: ReadonlyArray<PType>, sourceLocation: SourceLocation): NodeBuilder;
40
+ }
41
+ export declare class BoxRefPutFunctionBuilder extends BoxRefBaseFunctionBuilder {
42
+ call(args: ReadonlyArray<InstanceBuilder>, typeArgs: ReadonlyArray<PType>, sourceLocation: SourceLocation): NodeBuilder;
43
+ }
44
+ export declare class BoxRefSpliceFunctionBuilder extends BoxRefBaseFunctionBuilder {
45
+ call(args: ReadonlyArray<InstanceBuilder>, typeArgs: ReadonlyArray<PType>, sourceLocation: SourceLocation): NodeBuilder;
46
+ }
47
+ export declare class BoxExpressionBuilder extends BoxProxyExpressionBuilder<BoxPType> {
48
+ constructor(expr: Expression, ptype: PType);
49
+ memberAccess(name: string, sourceLocation: SourceLocation): NodeBuilder;
50
+ }
@@ -0,0 +1,29 @@
1
+ import type { Expression, LValue } from '../../../awst/nodes';
2
+ import type { SourceLocation } from '../../../awst/source-location';
3
+ import { AppStorageDeclaration } from '../../contract-data';
4
+ import type { ContractClassPType, PType } from '../../ptypes';
5
+ import { GlobalStateType } from '../../ptypes';
6
+ import type { NodeBuilder } from '../index';
7
+ import { FunctionBuilder, InstanceBuilder, InstanceExpressionBuilder } from '../index';
8
+ export declare class GlobalStateFunctionBuilder extends FunctionBuilder {
9
+ constructor(sourceLocation: SourceLocation);
10
+ call(args: ReadonlyArray<InstanceBuilder>, typeArgs: ReadonlyArray<PType>, sourceLocation: SourceLocation): InstanceBuilder;
11
+ }
12
+ export declare class GlobalStateExpressionBuilder extends InstanceExpressionBuilder<GlobalStateType> {
13
+ constructor(expr: Expression, ptype: PType);
14
+ memberAccess(name: string, sourceLocation: SourceLocation): NodeBuilder;
15
+ private buildField;
16
+ }
17
+ export declare class GlobalStateFunctionResultBuilder extends InstanceBuilder<GlobalStateType> {
18
+ resolve(): Expression;
19
+ resolveLValue(): LValue;
20
+ private _ptype;
21
+ private _expr;
22
+ readonly initialValue: Expression | undefined;
23
+ constructor(expr: Expression | undefined, ptype: PType, config: {
24
+ initialValue?: Expression;
25
+ sourceLocation: SourceLocation;
26
+ });
27
+ get ptype(): GlobalStateType;
28
+ buildStorageDeclaration(memberName: string, memberLocation: SourceLocation, contractType: ContractClassPType): AppStorageDeclaration;
29
+ }
@@ -0,0 +1,32 @@
1
+ import type { AppStateExpression, Expression, LValue } from '../../../awst/nodes';
2
+ import type { SourceLocation } from '../../../awst/source-location';
3
+ import { AppStorageDeclaration } from '../../contract-data';
4
+ import type { ContractClassPType, PType } from '../../ptypes';
5
+ import { LocalStateType } from '../../ptypes';
6
+ import { FunctionBuilder, InstanceBuilder, InstanceExpressionBuilder, NodeBuilder } from '../index';
7
+ export declare class LocalStateFunctionBuilder extends FunctionBuilder {
8
+ constructor(sourceLocation: SourceLocation);
9
+ call(args: ReadonlyArray<InstanceBuilder>, typeArgs: ReadonlyArray<PType>, sourceLocation: SourceLocation): InstanceBuilder;
10
+ }
11
+ export declare class LocalStateExpressionBuilder extends InstanceExpressionBuilder<LocalStateType> {
12
+ constructor(expr: Expression, ptype: PType);
13
+ call(args: ReadonlyArray<InstanceBuilder>, typeArgs: ReadonlyArray<PType>, sourceLocation: SourceLocation): NodeBuilder;
14
+ private buildField;
15
+ }
16
+ export declare class LocalStateForAccountExpressionBuilder extends NodeBuilder {
17
+ private key;
18
+ private contentType;
19
+ ptype: undefined;
20
+ constructor(key: AppStateExpression, contentType: PType);
21
+ memberAccess(name: string, sourceLocation: SourceLocation): NodeBuilder;
22
+ }
23
+ export declare class LocalStateFunctionResultBuilder extends InstanceBuilder<LocalStateType> {
24
+ resolve(): Expression;
25
+ resolveLValue(): LValue;
26
+ private _expr;
27
+ constructor(expr: Expression | undefined, ptype: PType, config: {
28
+ sourceLocation: SourceLocation;
29
+ });
30
+ readonly ptype: LocalStateType;
31
+ buildStorageDeclaration(memberName: string, memberLocation: SourceLocation, contractType: ContractClassPType): AppStorageDeclaration;
32
+ }
@@ -0,0 +1,5 @@
1
+ import type { Expression } from '../../../awst/nodes';
2
+ import type { WType } from '../../../awst/wtypes';
3
+ import type { InstanceBuilder } from '../index';
4
+ export declare function extractKey(key: InstanceBuilder, keyWType: WType): Expression;
5
+ export declare function extractKey(key: InstanceBuilder | undefined, keyWType: WType): Expression | undefined;
@@ -0,0 +1,22 @@
1
+ import type { Expression } from '../../../awst/nodes';
2
+ import type { SourceLocation } from '../../../awst/source-location';
3
+ import type { PType } from '../../ptypes';
4
+ import type { BuilderBinaryOp, BuilderComparisonOp, BuilderUnaryOp, InstanceBuilder, NodeBuilder } from '../index';
5
+ import { InstanceExpressionBuilder } from '../index';
6
+ export declare abstract class ValueProxy<TPType extends PType> extends InstanceExpressionBuilder<TPType> {
7
+ private get proxied();
8
+ memberAccess(name: string, sourceLocation: SourceLocation): NodeBuilder;
9
+ augmentedAssignment(other: InstanceBuilder, op: BuilderBinaryOp, sourceLocation: SourceLocation): InstanceBuilder;
10
+ iterate(sourceLocation: SourceLocation): Expression;
11
+ indexAccess(index: InstanceBuilder, sourceLocation: SourceLocation): NodeBuilder;
12
+ boolEval(sourceLocation: SourceLocation, negate?: boolean): Expression;
13
+ binaryOp(other: InstanceBuilder, op: BuilderBinaryOp, sourceLocation: SourceLocation): InstanceBuilder;
14
+ prefixUnaryOp(op: BuilderUnaryOp, sourceLocation: SourceLocation): InstanceBuilder;
15
+ postfixUnaryOp(op: BuilderUnaryOp, sourceLocation: SourceLocation): InstanceBuilder;
16
+ call(args: ReadonlyArray<InstanceBuilder>, typeArgs: ReadonlyArray<PType>, sourceLocation: SourceLocation): NodeBuilder;
17
+ compare(other: InstanceBuilder, op: BuilderComparisonOp, sourceLocation: SourceLocation): InstanceBuilder;
18
+ taggedTemplate(head: string, spans: ReadonlyArray<readonly [InstanceBuilder, string]>, sourceLocation: SourceLocation): InstanceBuilder;
19
+ singleEvaluation(): InstanceBuilder;
20
+ hasProperty(_name: string): boolean;
21
+ toBytes(sourceLocation: SourceLocation): Expression;
22
+ }
@@ -0,0 +1,27 @@
1
+ import { awst } from '../../awst';
2
+ import type { Expression } from '../../awst/nodes';
3
+ import type { SourceLocation } from '../../awst/source-location';
4
+ import type { InstanceType, PType, PTypeOrClass } from '../ptypes';
5
+ import type { InstanceBuilder, NodeBuilder } from './index';
6
+ import { BuilderBinaryOp, BuilderComparisonOp, FunctionBuilder, InstanceExpressionBuilder } from './index';
7
+ export declare class StringFunctionBuilder extends FunctionBuilder {
8
+ taggedTemplate(head: string, spans: ReadonlyArray<readonly [InstanceBuilder, string]>, sourceLocation: SourceLocation): InstanceBuilder;
9
+ call(args: Array<InstanceBuilder>, typeArgs: ReadonlyArray<PType>, sourceLocation: SourceLocation): InstanceBuilder;
10
+ }
11
+ export declare class StringExpressionBuilder extends InstanceExpressionBuilder<InstanceType> {
12
+ constructor(expr: Expression);
13
+ resolvableToPType(ptype: PTypeOrClass): boolean;
14
+ resolveToPType(ptype: PTypeOrClass): InstanceBuilder;
15
+ boolEval(sourceLocation: SourceLocation, negate?: boolean): Expression;
16
+ memberAccess(name: string, sourceLocation: SourceLocation): NodeBuilder;
17
+ compare(other: InstanceBuilder, op: BuilderComparisonOp, sourceLocation: SourceLocation): InstanceBuilder;
18
+ binaryOp(other: InstanceBuilder, op: BuilderBinaryOp, sourceLocation: SourceLocation): InstanceBuilder;
19
+ augmentedAssignment(other: InstanceBuilder, op: BuilderBinaryOp, sourceLocation: SourceLocation): InstanceBuilder;
20
+ toBytes(sourceLocation: SourceLocation): awst.Expression;
21
+ toString(): Expression;
22
+ }
23
+ export declare class ConcatExpressionBuilder extends FunctionBuilder {
24
+ private expr;
25
+ constructor(expr: awst.Expression);
26
+ call(args: ReadonlyArray<InstanceBuilder>, typeArgs: ReadonlyArray<PType>, sourceLocation: SourceLocation): StringExpressionBuilder;
27
+ }
@@ -0,0 +1,15 @@
1
+ import type { Expression } from '../../../awst/nodes';
2
+ import type { SourceLocation } from '../../../awst/source-location';
3
+ import type { PType } from '../../ptypes';
4
+ import { GroupTransactionPType, TransactionFunctionType } from '../../ptypes';
5
+ import type { InstanceBuilder, NodeBuilder } from '../index';
6
+ import { FunctionBuilder, InstanceExpressionBuilder } from '../index';
7
+ export declare class GroupTransactionExpressionBuilder extends InstanceExpressionBuilder<GroupTransactionPType> {
8
+ constructor(expr: Expression, ptype: PType);
9
+ memberAccess(name: string, sourceLocation: SourceLocation): NodeBuilder;
10
+ }
11
+ export declare class GroupTransactionFunctionBuilder extends FunctionBuilder {
12
+ readonly ptype: TransactionFunctionType;
13
+ constructor(sourceLocation: SourceLocation, ptype: PType);
14
+ call(args: ReadonlyArray<InstanceBuilder>, typeArgs: ReadonlyArray<PType>, sourceLocation: SourceLocation): NodeBuilder;
15
+ }
@@ -0,0 +1,19 @@
1
+ import type { Expression } from '../../../awst/nodes';
2
+ import type { SourceLocation } from '../../../awst/source-location';
3
+ import type { PType } from '../../ptypes';
4
+ import { ItxnParamsPType, TransactionFunctionType } from '../../ptypes';
5
+ import type { InstanceBuilder, NodeBuilder } from '../index';
6
+ import { FunctionBuilder, InstanceExpressionBuilder } from '../index';
7
+ export declare class ItxnParamsFactoryFunctionBuilder extends FunctionBuilder {
8
+ readonly ptype: TransactionFunctionType;
9
+ constructor(sourceLocation: SourceLocation, ptype: PType);
10
+ call(args: ReadonlyArray<InstanceBuilder>, typeArgs: ReadonlyArray<PType>, sourceLocation: SourceLocation): NodeBuilder;
11
+ }
12
+ export declare class SubmitItxnGroupFunctionBuilder extends FunctionBuilder {
13
+ ptype: import("../../ptypes").LibFunctionType;
14
+ call(args: ReadonlyArray<InstanceBuilder>, typeArgs: ReadonlyArray<PType>, sourceLocation: SourceLocation): NodeBuilder;
15
+ }
16
+ export declare class ItxnParamsExpressionBuilder extends InstanceExpressionBuilder<ItxnParamsPType> {
17
+ constructor(expr: Expression, ptype: PType);
18
+ memberAccess(name: string, sourceLocation: SourceLocation): NodeBuilder;
19
+ }
@@ -0,0 +1,10 @@
1
+ import type { Expression } from '../../../awst/nodes';
2
+ import type { SourceLocation } from '../../../awst/source-location';
3
+ import type { PType } from '../../ptypes';
4
+ import { InnerTransactionPType } from '../../ptypes';
5
+ import type { NodeBuilder } from '../index';
6
+ import { InstanceExpressionBuilder } from '../index';
7
+ export declare class InnerTransactionExpressionBuilder extends InstanceExpressionBuilder<InnerTransactionPType> {
8
+ constructor(expr: Expression, ptype: PType);
9
+ memberAccess(name: string, sourceLocation: SourceLocation): NodeBuilder;
10
+ }