/// <reference types="vite/client" />

declare module '*.vue' {
  import type { DefineComponent } from 'vue'
  const component: DefineComponent<{}, {}, any>
  export default component
}

// 组件类型声明
declare module '@/components' {
  import type { DefineComponent } from 'vue'
  export const PageTitle: DefineComponent<{ title: string }, {}, any>
  export const StatusTabs: DefineComponent<{ modelValue: string; tabs: Array<{ key: string; label: string }>; type?: 'line' | 'pill' }, {}, any>
  export const ProductItem: DefineComponent<{ product: any }, {}, any>
  export const ProductCard: DefineComponent<{ product: any; modelValue?: boolean; showCheckbox?: boolean; showAction?: boolean; showAddCart?: boolean; actionText?: string }, {}, any>
  export const SearchBar: DefineComponent<{ modelValue?: any; config?: any }, {}, any>
  export const StatCards: DefineComponent<{ cards: Array<any> }, {}, any>
  export const TablePagination: DefineComponent<{ page?: number; pageSize?: number; total: number }, {}, any>
  export const HeaderBar: DefineComponent<{}, {}, any>
}
