1 | import { Bounds, ComponentDefinition, InternalComponentCapability, ComponentDefinitionState, ComponentInstanceState, InternalComponentManager, Dict, DynamicScope, ElementOperations, Option, ProgramSymbolTable, ScopeSlot, WithUpdateHook, ModifierInstance, ComponentInstanceWithCreate, UpdatingOpcode } from '@glimmer/interfaces';
|
2 | import { Reference } from '@glimmer/reference';
|
3 | import { UpdatingVM } from '../../vm';
|
4 | import { InternalVM } from '../../vm/append';
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 | export interface InitialComponentInstance {
|
15 | definition: ComponentDefinition;
|
16 | manager: Option<InternalComponentManager>;
|
17 | capabilities: Option<InternalComponentCapability>;
|
18 | state: null;
|
19 | handle: Option<number>;
|
20 | table: Option<ProgramSymbolTable>;
|
21 | lookup: Option<Dict<ScopeSlot>>;
|
22 | }
|
23 | export interface PopulatedComponentInstance {
|
24 | definition: ComponentDefinition;
|
25 | manager: InternalComponentManager;
|
26 | capabilities: InternalComponentCapability;
|
27 | state: null;
|
28 | handle: number;
|
29 | table: Option<ProgramSymbolTable>;
|
30 | lookup: Option<Dict<ScopeSlot>>;
|
31 | }
|
32 | export interface PartialComponentDefinition {
|
33 | state: Option<ComponentDefinitionState>;
|
34 | manager: InternalComponentManager;
|
35 | }
|
36 | export declare class ComponentElementOperations implements ElementOperations {
|
37 | private attributes;
|
38 | private classes;
|
39 | private modifiers;
|
40 | setAttribute(name: string, value: Reference<unknown>, trusting: boolean, namespace: Option<string>): void;
|
41 | setStaticAttribute(name: string, value: string, namespace: Option<string>): void;
|
42 | addModifier(modifier: ModifierInstance): void;
|
43 | flush(vm: InternalVM): ModifierInstance[];
|
44 | }
|
45 | export declare class UpdateComponentOpcode implements UpdatingOpcode {
|
46 | private component;
|
47 | private manager;
|
48 | private dynamicScope;
|
49 | constructor(component: ComponentInstanceState, manager: WithUpdateHook, dynamicScope: Option<DynamicScope>);
|
50 | evaluate(_vm: UpdatingVM): void;
|
51 | }
|
52 | export declare class DidUpdateLayoutOpcode implements UpdatingOpcode {
|
53 | private component;
|
54 | private bounds;
|
55 | constructor(component: ComponentInstanceWithCreate, bounds: Bounds);
|
56 | evaluate(vm: UpdatingVM): void;
|
57 | }
|
58 | //# sourceMappingURL=component.d.ts.map |
\ | No newline at end of file |