/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ import ts from 'typescript'; import type { LitClassContext } from '../lit-class-context.js'; import type { MemberDecoratorVisitor } from '../visitor.js'; /** * Transform: * * @queryAsync('#myButton') * button * * Into: * * get button() { * return this.updateComplete.then( * () => this.renderRoot.querySelector('#myButton')); * } */ export declare class QueryAsyncVisitor implements MemberDecoratorVisitor { readonly kind = "memberDecorator"; readonly decoratorName = "queryAsync"; private readonly _factory; constructor({ factory }: ts.TransformationContext); visit(litClassContext: LitClassContext, property: ts.ClassElement, decorator: ts.Decorator): void; private _createQueryAsyncGetter; }