/** * Loading Component Props */ export interface LoadingProps { /** * Size of the loading spinner (radius in pixels) * @default 30 */ size?: number; /** * Color of the spinner segments * @default "#3498db" */ color?: string; /** * Background color of the spinner (optional) */ backgroundColor?: string; /** * Rotation speed in degrees per second * @default 180 */ speed?: number; /** * Number of segments in the spinner * @default 8 */ segments?: number; /** * Width of each segment * @default 3 */ segmentWidth?: number; /** * Alpha value for inactive segments (0-1) * @default 0.15 */ inactiveAlpha?: number; } /** * Loading Component * * Creates an animated circular loading spinner with customizable appearance and rotation speed. * The spinner consists of multiple segments that rotate continuously, creating a smooth loading indicator. * * ## Design * * The component uses a Graphics element to draw multiple segments arranged in a circle: * - **Segments**: Multiple radial segments that create a circular pattern * - **Rotation animation**: Continuous rotation using the tick system for smooth animation * - **Alpha variation**: Active segments are fully opaque while inactive segments have reduced opacity * - **Customizable**: Size, color, speed, and number of segments can be adjusted * * @param {LoadingProps} opts - Configuration options for the loading spinner * * @example * ```tsx * // Basic usage with default settings * * * // Custom size and color * * * // Fast spinning loader * * * // Large loader with background * * * // Using signals for dynamic control * const loaderSize = signal(30); * const loaderSpeed = signal(180); * * * ``` * * @returns {JSX.Element} A container with an animated loading spinner */ export declare function Loading(opts?: LoadingProps): import('../../core/dist/index.d.ts').Element | Promise>; //# sourceMappingURL=Loading.d.ts.map