import { registrableMetadataKey } from '@aurelia/kernel'; import { Scope } from '@aurelia/runtime'; import { INode } from '../../dom.node'; import { ICustomAttributeController, ICustomAttributeViewModel, IHydratableController, IHydratedController, IHydratedParentController, ISyntheticView } from '../../templating/controller'; import { IInstruction, AttrSyntax } from '@aurelia/template-compiler'; import { CustomAttributeStaticAuDefinition } from '../custom-attribute'; export declare class PromiseTemplateController implements ICustomAttributeViewModel { static readonly $au: CustomAttributeStaticAuDefinition; readonly $controller: ICustomAttributeController; private view; value: Promise; pending?: PendingTemplateController; fulfilled?: FulfilledTemplateController; rejected?: RejectedTemplateController; private viewScope; private preSettledTask; private postSettledTask; private postSettlePromise; link(_controller: IHydratableController, _childController: ICustomAttributeController, _target: INode, _instruction: IInstruction): void; attaching(initiator: IHydratedController, _parent: IHydratedParentController): void | Promise; valueChanged(_newValue: boolean, _oldValue: boolean): void; private swap; detaching(initiator: IHydratedController, _parent: IHydratedParentController): void | Promise; dispose(): void; } export declare class PendingTemplateController implements ICustomAttributeViewModel { static readonly $au: CustomAttributeStaticAuDefinition; readonly $controller: ICustomAttributeController; value: Promise; view: ISyntheticView | undefined; link(controller: IHydratableController, _childController: ICustomAttributeController, _target: INode, _instruction: IInstruction): void; activate(initiator: IHydratedController | null, scope: Scope): void | Promise; deactivate(_initiator: IHydratedController | null): void | Promise; detaching(initiator: IHydratedController): void | Promise; dispose(): void; } export declare class FulfilledTemplateController implements ICustomAttributeViewModel { static readonly $au: CustomAttributeStaticAuDefinition; readonly $controller: ICustomAttributeController; value: unknown; view: ISyntheticView | undefined; link(controller: IHydratableController, _childController: ICustomAttributeController, _target: INode, _instruction: IInstruction): void; activate(initiator: IHydratedController | null, scope: Scope, resolvedValue: unknown): void | Promise; deactivate(_initiator: IHydratedController | null): void | Promise; detaching(initiator: IHydratedController, _parent: IHydratedParentController): void | Promise; dispose(): void; } export declare class RejectedTemplateController implements ICustomAttributeViewModel { static readonly $au: CustomAttributeStaticAuDefinition; readonly $controller: ICustomAttributeController; value: unknown; view: ISyntheticView | undefined; link(controller: IHydratableController, _childController: ICustomAttributeController, _target: INode, _instruction: IInstruction): void; activate(initiator: IHydratedController | null, scope: Scope, error: unknown): void | Promise; deactivate(_initiator: IHydratedController | null): void | Promise; detaching(initiator: IHydratedController, _parent: IHydratedParentController): void | Promise; dispose(): void; } export declare class PromiseAttributePattern { static [Symbol.metadata]: { [registrableMetadataKey]: import("@aurelia/kernel").IRegistry; }; 'promise.resolve'(name: string, value: string): AttrSyntax; } export declare class FulfilledAttributePattern { static [Symbol.metadata]: { [registrableMetadataKey]: import("@aurelia/kernel").IRegistry; }; 'then'(name: string, value: string): AttrSyntax; } export declare class RejectedAttributePattern { static [Symbol.metadata]: { [registrableMetadataKey]: import("@aurelia/kernel").IRegistry; }; 'catch'(name: string, value: string): AttrSyntax; } //# sourceMappingURL=promise.d.ts.map