import { CssLength } from '@breadstone/mosaik-themes'; import { SkeletonShape } from '../../../Types/SkeletonShape'; import { CustomElement } from '../../Abstracts/CustomElement'; import { ISkeletonElementProps } from './ISkeletonElementProps'; type Target = '_blank' | '_self' | '_parent' | '_top'; declare const SkeletonElement_base: (abstract new (...args: Array) => import("../../../Behaviors/Themeable").IThemeableProps) & (abstract new (...args: Array) => import("../../../Behaviors/Dimensionable").IDimensionableProps) & typeof CustomElement & import("../../../Behaviors/Themeable").IThemeableCtor; /** * Skeleton - A placeholder element that mimics content structure during loading states. * * @description * The Skeleton component is a fundamental loading indicator that provides visual feedback while * content is being fetched or processed. It displays placeholder shapes that approximate the final * content layout, reducing perceived loading time and improving user experience by showing the * structure of upcoming content. The component supports multiple shape variants (rectangle, circle, * text) through the SkeletonShape enumeration, configurable dimensions via the Dimensionable behavior, * and an optional shimmer animation effect that creates a subtle sweeping highlight to indicate * loading activity. Skeleton screens are proven to reduce bounce rates and increase user engagement * during asynchronous operations. * * @name Skeleton * @element mosaik-skeleton * @category Primitives * * @csspart shimmer - The animated shimmer highlight overlay element * * @cssprop {String} --skeleton-background-color - The base background color of the skeleton placeholder * @cssprop {String} --skeleton-border-color - The border color of the skeleton placeholder * @cssprop {String} --skeleton-border-radius - The border radius for rounded skeleton shapes * @cssprop {String} --skeleton-border-style - The border style for the skeleton placeholder * @cssprop {String} --skeleton-border-width - The border width for the skeleton placeholder * @cssprop {String} --skeleton-foreground-color - The foreground color (typically unused but available) * * @example * Text line skeleton placeholder: * ```html * * ``` * * @example * Avatar skeleton with shimmer animation: * ```html * * ``` * * @public */ export declare class SkeletonElement extends SkeletonElement_base implements ISkeletonElementProps { private _shape; private _shimmer; /** * @public */ constructor(); /** * Returns the `is` property. * The `is` property represents natural name of this element. * * @public * @static * @readonly */ static get is(): string; target?: Target; /** * Gets or sets the `shape` property. * * @public * @attr */ get shape(): SkeletonShape; set shape(value: SkeletonShape); /** * Gets or sets the `shimmer` property. * * @public * @attr */ get shimmer(): boolean; set shimmer(value: boolean); /** * @protected */ protected onWidthPropertyChanged(prev?: CssLength, next?: CssLength): void; /** * @protected */ protected onHeightPropertyChanged(prev?: CssLength, next?: CssLength): void; } /** * @public */ export declare namespace SkeletonElement { type Props = ISkeletonElementProps; } /** * @public */ declare global { interface HTMLElementTagNameMap { 'mosaik-skeleton': SkeletonElement; } } export {}; //# sourceMappingURL=SkeletonElement.d.ts.map