blob: 83793d7c9dfe109e6840e0e3dd8dca3b4a61097c [file] [log] [blame]
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { Constructor } from './constructor';
import { ElementRef } from '@angular/core';
/** @docs-private */
export interface CanColor {
/** Theme color palette for the component. */
color: ThemePalette;
/** Default color to fall back to if no value is set. */
defaultColor: ThemePalette | undefined;
}
/** @docs-private */
export declare type CanColorCtor = Constructor<CanColor>;
/** @docs-private */
export interface HasElementRef {
_elementRef: ElementRef;
}
/** Possible color palette values. */
export declare type ThemePalette = 'primary' | 'accent' | 'warn' | undefined;
/** Mixin to augment a directive with a `color` property. */
export declare function mixinColor<T extends Constructor<HasElementRef>>(base: T, defaultColor?: ThemePalette): CanColorCtor & T;