import { ComponentHarness, HarnessPredicate } from '@angular/cdk/testing'; import { SkyHarnessFilters, SkyQueryableComponentHarness } from '@skyux/core/testing'; /** * A set of criteria that can be used to filter a list of `SkyInlineFormButtonHarness` instances. */ interface SkyInlineFormButtonHarnessFilters extends SkyHarnessFilters { /** * Finds the button whose text matches this value. */ text?: string; /** * Finds the button whose style type matches this value. */ styleType?: 'primary' | 'link' | 'default'; } /** * Harness to interact with inline form button component in tests. */ declare class SkyInlineFormButtonHarness extends ComponentHarness { /** * @internal */ static hostSelector: string; /** * Gets a `HarnessPredicate` that can be used to search for a * `SkyInlineFormButtonHarness` that meets certain criteria. */ static with(filters: SkyInlineFormButtonHarnessFilters): HarnessPredicate; /** * Clicks the button. */ click(): Promise; /** * Gets the button style type. */ getStyleType(): Promise<'primary' | 'link' | 'default'>; /** * Gets the button text. */ getText(): Promise; /** * Whether the button is disabled. */ isDisabled(): Promise; } /** * A set of criteria that can be used to filter a list of `SkyInlineFormHarness` instances. */ interface SkyInlineFormHarnessFilters extends SkyHarnessFilters { } /** * Harness to interact with inline form template components in tests. */ declare class SkyInlineFormTemplateHarness extends SkyQueryableComponentHarness { /** * @internal */ static hostSelector: string; } /** * Harness to interact with inline form components in tests. */ declare class SkyInlineFormHarness extends SkyQueryableComponentHarness { /** * @internal */ static hostSelector: string; /** * Gets a `HarnessPredicate` that can be used to search for a * `SkyInlineFormHarness` that meets certain criteria. */ static with(filters: SkyInlineFormHarnessFilters): HarnessPredicate; /** * Gets a specific inline form button based on the filter criteria. * @param filters The filter criteria. */ getButton(filters: SkyInlineFormButtonHarnessFilters): Promise; /** * Gets an array of inline form buttons based on the filter criteria. * If no filter is provided, returns all inline form buttons. * @param filters The optional filter criteria. */ getButtons(filters?: SkyInlineFormButtonHarnessFilters): Promise; /** * Returns a harness wrapping the inline form's template when expanded. */ getTemplate(): Promise; /** * Whether the inline form is shown. */ isFormExpanded(): Promise; } export { SkyInlineFormButtonHarness, SkyInlineFormHarness, SkyInlineFormTemplateHarness }; export type { SkyInlineFormButtonHarnessFilters, SkyInlineFormHarnessFilters };