import type { HiprintPrintConfig, HiprintPrintResult } from '#/utils/jnpf';

export interface CustomPrintConfig {
  data?: any;
  showPdfBtn?: boolean;
  template: string;
  title?: string;
  type?: 'html' | 'html-file' | 'vue';
}

export interface CustomPrintPreviewExpose {
  browserPrint: () => void;
  downloadPdf: (fileName: string) => Promise<boolean>;
  hiprint: (options?: Omit<HiprintPrintConfig, 'html' | 'template'>) => Promise<HiprintPrintResult | undefined>;
  reload: () => void;
}
