import { type Constructor } from '../../types.js'; import { type BaseTestable } from './base_testable.js'; /** * Provides assertion methods for testing components */ export declare function MakesAssertions>(Base: TConstructor): { new (...args: any[]): { /** * Assert that the HTML contains a specific string */ assertSee(value: string, escape?: boolean): /*elided*/ any; /** * Assert that the HTML does not contain a specific string */ assertDontSee(value: string, escape?: boolean): /*elided*/ any; /** * Assert that the HTML contains a specific string, without escaping it first * (PHP parity: assertSeeHtml — the counterpart to assertSee's default escaping) */ assertSeeHtml(value: string): /*elided*/ any; /** * Assert that the HTML does not contain a specific string, without escaping it * first (PHP parity: assertDontSeeHtml) */ assertDontSeeHtml(value: string): /*elided*/ any; /** * Assert that each value appears in the HTML in the given order * (PHP parity: assertSeeInOrder) */ assertSeeInOrder(values: string[], escape?: boolean): /*elided*/ any; /** * Assert that a property has a specific value */ assertSet(propertyName: string, value: any): /*elided*/ any; /** * Assert that a property is not set to a specific value */ assertNotSet(propertyName: string, value: any): /*elided*/ any; /** * Assert that an array property has a specific count */ assertCount(propertyName: string, count: number): /*elided*/ any; /** * Escape HTML special characters */ "__#212@#escapeHtml"(value: string): string; /** * Deep equality check */ "__#212@#isEqual"(a: any, b: any): boolean; "__#218@#state": import("./component_state.ts").ComponentState; "__#218@#dataStore": import("../../store.ts").DataStore; "__#218@#componentContext": import("../../component_context.ts").default; "__#218@#app": import("@adonisjs/core/types").ApplicationService; "__#218@#ctx": import("@adonisjs/http-server").HttpContext; "__#218@#features": import("../../component_hook.ts").default[]; "__#218@#mountParams": any[]; readonly mountParams: any[]; readonly state: import("./component_state.ts").ComponentState; mount(...params: any[]): import("./base_testable.js").ChainableTest; set(propertyName: string, value: any): import("./base_testable.js").ChainableTest; call(method: string, ...params: any[]): import("./base_testable.js").ChainableTest; toggle(propertyName: string): import("./base_testable.js").ChainableTest; refresh(): import("./base_testable.js").ChainableTest; get(propertyName: string): any; snapshot(): import("../../types.js").ComponentSnapshot; effects(): import("../../types.js").ComponentEffects; html(): string; instance(): import("../../component.ts").Component; getState(): import("./component_state.ts").ComponentState; "__#218@#executeMount"(...params: any[]): Promise; "__#218@#executeSet"(propertyName: string, value: any): Promise; "__#218@#executeCall"(method: string, ...params: any[]): Promise; "__#218@#executeToggle"(propertyName: string): Promise; "__#218@#executeRefresh"(): Promise; "__#218@#updateComponentState"(component: import("../../component.ts").Component, componentContext: import("../../component_context.ts").default): Promise; "__#218@#getComponentState"(component: import("../../component.ts").Component): Record; "__#218@#createFeatures"(component: import("../../component.ts").Component): import("../../component_hook.ts").default[]; hasMethod(obj: any, methodName: string): boolean; }; } & TConstructor; export interface MakesAssertions { assertSee(value: string, escape?: boolean): this; assertDontSee(value: string, escape?: boolean): this; assertSeeHtml(value: string): this; assertDontSeeHtml(value: string): this; assertSeeInOrder(values: string[], escape?: boolean): this; assertSet(propertyName: string, value: any): this; assertNotSet(propertyName: string, value: any): this; assertCount(propertyName: string, count: number): this; }