import { FoundationElement } from '@microsoft/fast-foundation'; import { EnvironmentConfig, EnvironmentIndicatorConfig } from './types'; /** * @tagname %%prefix%%-environment-indicator * @description Displays an environment indicator with a label and an icon * @public */ export declare class EnvironmentIndicator extends FoundationElement { /** * @attr level - the environment level to display */ level: string; /** * @attr label - the label to display */ label: string; /** * @attr show-icon - whether to show an icon next to the environment text */ showIcon: boolean; /** * @attr size - the size of the indicator. Can be 'sm' or 'lg' */ size: 'sm' | 'lg'; /** * @attr background-color - the background color of the indicator */ backgroundColor: string; /** * @attr text-color - the text color of the indicator */ textColor: string; /** * @attr icon - the icon to display */ icon: string; /** * @attr icon-size - the size of the icon */ iconSize: EnvironmentConfig['iconSize']; /** * @attr use-default-config - whether to use the default config */ useDefaultConfig: boolean; /** * Current environment configuration */ config: EnvironmentConfig; /** * Environment configurations */ envConfigs: EnvironmentConfig[]; envConfigsChanged(): void; /** * Current environment configuration from DI */ diConfig: EnvironmentIndicatorConfig; diConfigChanged(): void; private unsubscribeConfig?; subscribeToDiConfig(): void; connectedCallback(): void; disconnectedCallback(): void; /** * Helper function to get config from attributes * @returns the config from attributes */ private getAttributesConfig; /** * Get the current environment level based on priority order */ private getCurrentEnvironmentLevel; getEnvConfigByLevel(): EnvironmentConfig | undefined; /** * Handle config change when attributes change */ attributeChangedCallback(name: string, oldValue: string, newValue: string): void; /** * Set environment configurations * @param envConfigs - the environment configurations */ setEnvConfigs(envConfigs: EnvironmentConfig[]): void; } /** * The Foundation Environment indicator * * @public * @remarks * HTML Element: \ */ export declare const foundationEnvironmentIndicator: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{ baseName: string; template: import("@microsoft/fast-element").ViewTemplate; styles: import("@microsoft/fast-element").ElementStyles; }>) => import("@microsoft/fast-foundation").FoundationElementRegistry<{ baseName: string; template: import("@microsoft/fast-element").ViewTemplate; styles: import("@microsoft/fast-element").ElementStyles; }, typeof EnvironmentIndicator>; //# sourceMappingURL=environment-indicator.d.ts.map