import type { Rule } from "ant-design-vue/es/form";

declare global {
  interface Window {
    $message: any;
    $notification: any;
    $info: any;
    $success: any;
    $error: any;
    $warning: any;
    $confirm: any;
    $destroyAll: any;
    electronApi: any;
  }

  type FormRules<T extends string> = Partial<Record<T, Rule[]>>;

  interface SelectOption {
    value: string | number | boolean;
    label: string;
  }
}
