index.d.ts 1.4 KB

12345678910111213141516171819202122232425262728
  1. import { BaseHarnessFilters, ComponentHarness, ComponentHarnessConstructor, HarnessPredicate } from '@angular/cdk/testing';
  2. import { P as ProgressSpinnerMode } from '../../progress-spinner.d-Lfz4Wh5x.js';
  3. import '@angular/core';
  4. import '../../palette.d-BSSFKjO6.js';
  5. /** A set of criteria that can be used to filter a list of `MatProgressSpinnerHarness` instances. */
  6. interface ProgressSpinnerHarnessFilters extends BaseHarnessFilters {
  7. }
  8. /** Harness for interacting with a MDC based mat-progress-spinner in tests. */
  9. declare class MatProgressSpinnerHarness extends ComponentHarness {
  10. /** The selector for the host element of a `MatProgressSpinner` instance. */
  11. static hostSelector: string;
  12. /**
  13. * Gets a `HarnessPredicate` that can be used to search for a progress spinnner with specific
  14. * attributes.
  15. * @param options Options for filtering which progress spinner instances are considered a match.
  16. * @return a `HarnessPredicate` configured with the given options.
  17. */
  18. static with<T extends MatProgressSpinnerHarness>(this: ComponentHarnessConstructor<T>, options?: ProgressSpinnerHarnessFilters): HarnessPredicate<T>;
  19. /** Gets the progress spinner's value. */
  20. getValue(): Promise<number | null>;
  21. /** Gets the progress spinner's mode. */
  22. getMode(): Promise<ProgressSpinnerMode>;
  23. }
  24. export { MatProgressSpinnerHarness };
  25. export type { ProgressSpinnerHarnessFilters };