import { DebugElement } from '@angular/core'; import { ComponentFixture } from '@angular/core/testing'; import { ResolveFn, ActivatedRouteSnapshot } from '@angular/router'; declare class TbxDomHelper { private readonly internalFixture; constructor(fixture: ComponentFixture); /** Gets the component fixture wrapped in this instance. */ get fixture(): ComponentFixture; /** Gets the number of CSS classes found in the component fixture. */ get cssClassesLength(): number; /** Gets all CSS classes found in the component fixture. */ get cssClasses(): string[]; /** * Searches for an element in the fixture using {@link By.css}. * @param selector The selector to search. * @return The {@DebugElement} found with the given selector. */ queryDebugElement(selector: string): DebugElement; queryDebugElements(selector: string): DebugElement[]; hasElement(selector: string, failedMessage?: string): void; hasNoElement(selector: string, failedMessage?: string): void; hasContent(content: string, failedMessage?: string): void; hasNoContent(content: string, failedMessage?: string): void; hasCssClass(cssClass: string, failedMessage?: string): void; hasNoCssClass(cssClass: string, failedMessage?: string): void; /** * Finds the button in the fixture that has the given text as content or the * "title" attribute and clicks it if found. * @param textOrTitle */ clickButton(textOrTitle: string): void; fixtureHasContent(text: string, detectChanges?: boolean): Promise; validateTableRowCount(count: number, queryAllSelector?: string, detectChanges?: boolean): Promise; static queryDebugElement(de: DebugElement, selector: string): DebugElement; static queryDebugElements(de: DebugElement, selector: string): DebugElement[]; static hasElement(de: DebugElement, selector: string, failedMessage?: string): void; static hasNoElement(de: DebugElement, selector: string, failedMessage?: string): void; static hasContent(el: DebugElement | string, content: string, failedMessage?: string): void; static hasNoContent(el: DebugElement | string, content: string, failedMessage?: string): void; static hasCssClass(el: DebugElement, cssClass: string, failedMessage?: string): void; static hasNoCssClass(el: DebugElement, cssClass: string, failedMessage?: string): void; static getCssClassLength(de: DebugElement): number; static getCssClasses(de: DebugElement): string[]; static fixtureHasContent(fixture: ComponentFixture, text: string, detectChanges?: boolean): Promise; static validateTableRowCount(fixture: ComponentFixture, count: number, queryAllSelector?: string, detectChanges?: boolean): Promise; } declare const validateResult: (resolver: ResolveFn, routeSnapshot: ActivatedRouteSnapshot, expected: any) => void; declare const validateError: (resolver: ResolveFn, routeSnapshot: ActivatedRouteSnapshot, routeUrl: string) => void; export { TbxDomHelper, validateError, validateResult };