import { type ComputerUseControl } from "../../../components/this-computer/computer-use.js"; import type { DesktopThisComputer } from "./this-computer.js"; export interface ComputerUseOptions { /** * What "Open System Settings" does for a missing permission. By default it * asks for the next missing one: its System Settings list with the app's * guide beside it. A permissions page can pass its own. */ onAllowPermissions?: (() => void) | undefined; } /** The computer-use switch's state and actions for this computer in the desktop app. */ export declare function useDesktopComputerUseControl(desktop: DesktopThisComputer, options?: ComputerUseOptions): ComputerUseControl; export interface ComputerUseRowProps extends ComputerUseOptions { desktop: DesktopThisComputer; className?: string | undefined; } /** * The master switch for this computer, as a settings row: off, turning on * (including asking for missing permissions), on, on while a permission is * still missing (calm, with "Open System Settings"), or on with a problem and * its one fix. Off pauses the agent and keeps its registration, so turning * it on again is instant. */ export declare function ComputerUseRow({ desktop, onAllowPermissions, className }: ComputerUseRowProps): import("react").JSX.Element | null; export interface ComputerUseNoticeProps extends ComputerUseOptions { desktop: DesktopThisComputer; className?: string | undefined; } /** * For the sidebar: only while computer use turns on, waits on a permission * (calm, not an error) or has a problem (with the same one fix as the * switch). Nothing when it's on or off. */ export declare function ComputerUseNotice({ desktop, onAllowPermissions, className, }: ComputerUseNoticeProps): import("react").JSX.Element | null;