1 | import type { SourceSlice } from '../../source/slice';
|
2 | import type { SymbolTable } from '../../symbol-table';
|
3 | import type { ComponentArg, ElementModifier, HtmlOrSplatAttr } from './attr-block';
|
4 | import type { CallFields } from './base';
|
5 | import type { ExpressionNode } from './expr';
|
6 | import type { NamedBlock, NamedBlocks } from './internal-node';
|
7 | import type { BaseNodeFields } from './node';
|
8 | import { Args } from './args';
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 | export type ContentNode = HtmlText | HtmlComment | AppendContent | InvokeBlock | InvokeComponent | SimpleElement | GlimmerComment;
|
16 | declare const GlimmerComment_base: import("./node").TypedNodeConstructor<"GlimmerComment", {
|
17 | text: SourceSlice;
|
18 | } & BaseNodeFields>;
|
19 | export declare class GlimmerComment extends GlimmerComment_base {
|
20 | }
|
21 | declare const HtmlText_base: import("./node").TypedNodeConstructor<"HtmlText", {
|
22 | chars: string;
|
23 | } & BaseNodeFields>;
|
24 | export declare class HtmlText extends HtmlText_base {
|
25 | }
|
26 | declare const HtmlComment_base: import("./node").TypedNodeConstructor<"HtmlComment", {
|
27 | text: SourceSlice;
|
28 | } & BaseNodeFields>;
|
29 | export declare class HtmlComment extends HtmlComment_base {
|
30 | }
|
31 | declare const AppendContent_base: import("./node").TypedNodeConstructor<"AppendContent", {
|
32 | value: ExpressionNode;
|
33 | trusting: boolean;
|
34 | table: SymbolTable;
|
35 | } & BaseNodeFields>;
|
36 | export declare class AppendContent extends AppendContent_base {
|
37 | get callee(): ExpressionNode;
|
38 | get args(): Args;
|
39 | }
|
40 | declare const InvokeBlock_base: import("./node").TypedNodeConstructor<"InvokeBlock", CallFields & {
|
41 | blocks: NamedBlocks;
|
42 | } & BaseNodeFields>;
|
43 | export declare class InvokeBlock extends InvokeBlock_base {
|
44 | }
|
45 | interface InvokeComponentFields {
|
46 | callee: ExpressionNode;
|
47 | blocks: NamedBlocks;
|
48 | attrs: readonly HtmlOrSplatAttr[];
|
49 | componentArgs: readonly ComponentArg[];
|
50 | modifiers: readonly ElementModifier[];
|
51 | }
|
52 | declare const InvokeComponent_base: import("./node").TypedNodeConstructor<"InvokeComponent", InvokeComponentFields & BaseNodeFields>;
|
53 |
|
54 |
|
55 |
|
56 |
|
57 |
|
58 | export declare class InvokeComponent extends InvokeComponent_base {
|
59 | get args(): Args;
|
60 | }
|
61 | interface SimpleElementOptions extends BaseNodeFields {
|
62 | tag: SourceSlice;
|
63 | body: readonly ContentNode[];
|
64 | attrs: readonly HtmlOrSplatAttr[];
|
65 | componentArgs: readonly ComponentArg[];
|
66 | modifiers: readonly ElementModifier[];
|
67 | }
|
68 | declare const SimpleElement_base: import("./node").TypedNodeConstructor<"SimpleElement", SimpleElementOptions & BaseNodeFields>;
|
69 |
|
70 |
|
71 |
|
72 |
|
73 | export declare class SimpleElement extends SimpleElement_base {
|
74 | get args(): Args;
|
75 | }
|
76 | export type ElementNode = NamedBlock | InvokeComponent | SimpleElement;
|
77 | export {};
|