/** * Copyright (c) Cisco Systems, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ import "../button/Button"; import "../chip/Chip"; import "../icon/Icon"; import { LitElement, PropertyValues } from "lit"; export declare enum CardAlertSeverity { CRITICAL = "critical", MEDIUM = "medium" } export interface CardAlertLocale { dismiss?: string; justNow: string; minutesAgo: (n: number) => string; hoursAgo: (n: number) => string; daysAgo: (n: number) => string; } export declare enum CardAlertDetailImpact { POSITIVE = "positive", NEGATIVE = "negative", NEUTRAL = "neutral" } export declare namespace CardAlert { interface DetailRow { label: string; value: string; impact?: CardAlertDetailImpact; } class ELEMENT extends LitElement { static readonly locale: CardAlertLocale; severity: CardAlertSeverity | ""; category: string; secondaryChip: string; timestamp: string; title: string; queueName: string; details: DetailRow[]; insight: string; primaryActionLabel: string; primaryActionDropdown: boolean; detailsHeading: string; showDismiss: boolean; expanded: boolean; private relativeTime; private timerInterval?; static get styles(): import("lit").CSSResult[]; private get normalizedSeverity(); private get severityIcon(); private get severityColor(); private get hasInsight(); private get detailRows(); private get resolvedLocale(); private updateRelativeTime; private startTimer; private stopTimer; protected willUpdate(changedProperties: PropertyValues): void; disconnectedCallback(): void; private formatRelativeTime; private handlePrimaryAction; private handleDismiss; private renderTimestamp; private renderHeader; private renderTitleSection; private renderDetails; private renderInsight; private renderActions; render(): import("lit-html").TemplateResult<1>; } } declare global { interface HTMLElementTagNameMap { "md-card-alert": CardAlert.ELEMENT; } }