import { contextBridge, ipcRenderer } from 'electron' contextBridge.exposeInMainWorld('pos', { listPrinters: (): Promise<{ name: string; displayName: string }[]> => ipcRenderer.invoke('printers:list'), printRaw9100: (host: string, port: number, bytes: Uint8Array): Promise => ipcRenderer.invoke('print:raw9100', host, port, bytes), })