import type { ThisComputerHost, ThisComputerPermissionId, ThisComputerStatus } from "@opengeni/sdk/this-computer"; export interface UseThisComputerResult { /** Null until the first reading, and outside a desktop app. */ status: ThisComputerStatus | null; /** An action from these screens is in progress. */ acting: boolean; /** The last action's failure from these screens, if the host didn't report one. */ actionError: string | null; /** The app can turn this computer off for the workspace. */ canDisconnect: boolean; refresh(): void; connect(options: { screenControl: boolean; }): Promise; pause(): Promise; resume(): Promise; disconnect(): Promise; requestPermission(id: ThisComputerPermissionId): Promise; } /** The bridge's error text without Electron's IPC prefix. */ export declare function hostErrorText(caught: unknown): string | null; /** * Where this computer stands for the workspace, kept current: the host says * when something changes, and the window coming back to the front reads it * again (permissions are granted in System Settings, outside the app). */ export declare function useThisComputer(host: ThisComputerHost | null | undefined, workspaceId: string, options?: { pollMs?: number; }): UseThisComputerResult;