import { Type } from '@angular/core'; import { ConverterFn, QueryTarget } from '../types'; import { NgtxElement } from './element'; export declare class NgtxMultiElement { private readonly elements; get length(): number; constructor(ngtxElements: NgtxElement[]); get(cssSelector: string): NgtxMultiElement; get(component: Type): NgtxMultiElement; get(queries: QueryTarget[]): NgtxMultiElement; getAll(cssSelector: string): NgtxMultiElement; getAll(queryTarget: QueryTarget): NgtxMultiElement; getAll(queryTarget: QueryTarget[]): NgtxMultiElement; forEach(handler: (element: NgtxElement, index: number) => any): void; find(handler: (element: NgtxElement, index: number) => boolean): NgtxElement; filter(handler: (element: NgtxElement, index: number) => boolean): NgtxMultiElement; map(handler: (element: NgtxElement, index: number) => Out): Out[]; first(): NgtxElement; nth(position: number): NgtxElement; atIndex(index: number): NgtxElement; last(): NgtxElement; /** * Gets the attribute with the specified name on the current element. * * --- * **Example:** * ~~~ts * const title = getAll('.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 = getAll('.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[]; textContents(trim?: boolean): string[]; withApi>(apiType: Type): Api; triggerEvent(name: string, eventArgs?: any): void; /** Returns the inner array of ngtx elements. */ unwrap(): NgtxElement[]; }