import { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";

type $RestProps = SvelteHTMLElements["div"];

type $Props = {
  /**
   * Set to `true` to hide the label title skeleton line
   * @default false
   */
  hideLabelTitle?: boolean;

  /**
   * Set to `true` to hide the label description skeleton line
   * @default false
   */
  hideLabelDescription?: boolean;

  [key: `data-${string}`]: unknown;
};

export type FileUploaderSkeletonProps = Omit<$RestProps, keyof $Props> & $Props;

export default class FileUploaderSkeleton extends SvelteComponentTyped<
  FileUploaderSkeletonProps,
  {
    click: WindowEventMap["click"];
    mouseenter: WindowEventMap["mouseenter"];
    mouseleave: WindowEventMap["mouseleave"];
    mouseover: WindowEventMap["mouseover"];
  },
  Record<string, never>
> {}
