[6a3a178] | 1 | /**
|
---|
| 2 | * @license
|
---|
| 3 | * Copyright Google LLC All Rights Reserved.
|
---|
| 4 | *
|
---|
| 5 | * Use of this source code is governed by an MIT-style license that can be
|
---|
| 6 | * found in the LICENSE file at https://angular.io/license
|
---|
| 7 | */
|
---|
| 8 | import { OnDestroy } from '@angular/core';
|
---|
| 9 | import { MatIconRegistry } from '@angular/material/icon';
|
---|
| 10 | import { Observable } from 'rxjs';
|
---|
| 11 | declare type PublicApi<T> = {
|
---|
| 12 | [K in keyof T]: T[K] extends (...x: any[]) => T ? (...x: any[]) => PublicApi<T> : T[K];
|
---|
| 13 | };
|
---|
| 14 | /**
|
---|
| 15 | * A null icon registry that must be imported to allow disabling of custom
|
---|
| 16 | * icons.
|
---|
| 17 | */
|
---|
| 18 | export declare class FakeMatIconRegistry implements PublicApi<MatIconRegistry>, OnDestroy {
|
---|
| 19 | addSvgIcon(): this;
|
---|
| 20 | addSvgIconLiteral(): this;
|
---|
| 21 | addSvgIconInNamespace(): this;
|
---|
| 22 | addSvgIconLiteralInNamespace(): this;
|
---|
| 23 | addSvgIconSet(): this;
|
---|
| 24 | addSvgIconSetLiteral(): this;
|
---|
| 25 | addSvgIconSetInNamespace(): this;
|
---|
| 26 | addSvgIconSetLiteralInNamespace(): this;
|
---|
| 27 | registerFontClassAlias(): this;
|
---|
| 28 | classNameForFontAlias(alias: string): string;
|
---|
| 29 | getDefaultFontSetClass(): string;
|
---|
| 30 | getSvgIconFromUrl(): Observable<SVGElement>;
|
---|
| 31 | getNamedSvgIcon(): Observable<SVGElement>;
|
---|
| 32 | setDefaultFontSetClass(): this;
|
---|
| 33 | addSvgIconResolver(): this;
|
---|
| 34 | ngOnDestroy(): void;
|
---|
| 35 | private _generateEmptySvg;
|
---|
| 36 | }
|
---|
| 37 | /** Import this module in tests to install the null icon registry. */
|
---|
| 38 | export declare class MatIconTestingModule {
|
---|
| 39 | }
|
---|
| 40 | export {};
|
---|