import { type ThisComputerLabels, type ThisComputerPlatform, type ThisComputerStatus, type UseThisComputerResult } from "../../../this-computer.js"; import { type ReactNode } from "react"; import { type ComputerUseControl } from "../../../components/this-computer/computer-use.js"; import { type ComputerUseOptions } from "./computer-use.js"; export interface DesktopThisComputer { workspaceId: string; computer: UseThisComputerResult; platform: ThisComputerPlatform; productName: string; labels: ThisComputerLabels; /** * Asks for the missing permissions, one after another (the system prompt * the first time, else the System Settings list with the app's guide). * Pass the reading an action just returned, as the shared one may lag. */ allowPermissions(status?: ThisComputerStatus | null): void; /** Signs this account in again, when the app has to; null where it can't. */ signIn: (() => void) | null; } /** This computer for the open workspace; null outside the desktop app. */ export declare function useDesktopThisComputer(): DesktopThisComputer | null; /** Mounted once per workspace shell, around the rail and the pages. */ export declare function DesktopThisComputerProvider({ workspaceId, children, }: { workspaceId: string; children: ReactNode; }): import("react").JSX.Element; /** * The computer-use switch's state and actions for this computer, for any page * in the desktop app (e.g. a permissions page around the switch); null * outside the desktop app. */ export declare function useDesktopComputerUse(options?: ComputerUseOptions): (ComputerUseControl & { machineName: string; }) | null; /** Above the account row, only while computer use turns on or needs something. */ export declare function DesktopThisComputerOffer({ className, ...options }: ComputerUseOptions & { className?: string | undefined; }): import("react").JSX.Element | null; /** The computer-use switch as a settings row, e.g. on a permissions page or in a dialog. */ export declare function DesktopComputerUseRow({ className, ...options }: ComputerUseOptions & { className?: string | undefined; }): import("react").JSX.Element | null; /** * Computer use on the Machines page: the switch in its own card, drawn like a * `group` Section's card. Not a Section itself: this module is in the session * page's eager graph (the sidebar notice), and Section's chunk is not. */ export declare function DesktopThisComputerPanel({ className }: { className?: string | undefined; }): import("react").JSX.Element | null; /** True when the page runs inside a desktop app at all. */ export declare const insideDesktopApp: boolean;