///
import type { NativeApi } from "@t3tools/contracts";
interface DesktopBridge {
getWsUrl: () => string | null;
pickFolder: () => Promise;
confirm: (message: string) => Promise;
showContextMenu: (items: readonly { id: string; label: string }[]) => Promise;
openExternal: (url: string) => Promise;
onMenuAction: (listener: (action: string) => void) => () => void;
}
declare global {
interface Window {
nativeApi?: NativeApi;
desktopBridge?: DesktopBridge;
}
}