import { VegaComponentInterface } from '../../types/ui.type';

export type VegaSkeletonLoaderItem = Partial<Pick<HTMLVegaSkeletonElement, 'type' | 'width' | 'height'>>;

export type VegaSkeletonLoaderLayout = {
	props?: Partial<VegaComponentInterface<HTMLVegaFlexElement>>;
	style?: Partial<CSSStyleDeclaration>;
};

export type VegaSkeletonLoaderConfig = {
	target: string;
	items?: VegaSkeletonLoaderItem[];
	layout?: VegaSkeletonLoaderLayout;
} & VegaSkeletonLoaderItem;
