import { Type } from '@angular/core'; import { ConverterFn, QueryTarget, TypedDebugElement } from '../types'; import { NgtxMultiElement } from './multi-element'; export declare class NgtxElement { readonly debugElement: TypedDebugElement; get nativeElement(): Html; get componentInstance(): Component; get injector(): import("@angular/core").Injector; constructor(debugElement: TypedDebugElement); withApi(apiType: Type): Api; get(cssSelector: string): NgtxElement; get(component: Type): NgtxElement; get(queries: QueryTarget[]): NgtxElement; getAll(cssSelector: string): NgtxMultiElement; getAll(queryTarget: Type): NgtxMultiElement; getAll(queryTarget: QueryTarget[]): NgtxMultiElement; /** * Gets the attribute with the specified name on the current element. * * --- * **Example:** * ~~~ts * const title = get('.submit-btn').attr('title'); * ~~~ * @param name The name of the attribute to get on the current element. */ attr(name: string): string; /** * Gets the attribute with the specified name on the current element and converts * it using the given conversion function. * --- * **Example:** * ~~~ts * // parses the stringified data in the dialogs data-result attribute * // and returns the result: * const dialogResult = get('.dialog').attr('data-result', JSON.parse); * ~~~ * @param name The name of the attribute to get on the current element. * @param convert A conversion function to apply before returning the value. */ attr(name: string, convert: ConverterFn): Out; triggerEvent(name: string, eventArgs?: any): void; textContent(trim?: boolean): string; debug(): void; }