/** * useResttyPane — per-pane operations hook. * * Operates on the active pane when no paneId is specified. * * @example * ```tsx * const { pane, split, close, sendInput } = useResttyPane(); * split("vertical"); * sendInput("ls -la\n"); * ``` * * @module Terminal/restty/useResttyPane */ import type { ResttyPaneHandle, ResttyPaneSplitDirection } from '@mks2508/restty'; /** * Return type of the useResttyPane hook. */ export interface IUseResttyPaneReturn { /** The resolved pane handle, or null if not found/ready. */ pane: ResttyPaneHandle | null; /** Split this pane in the given direction. */ split: (direction: ResttyPaneSplitDirection) => ResttyPaneHandle | null; /** Close this pane. */ close: () => boolean; /** Focus this pane. */ focus: () => void; /** Send raw input to this pane's PTY. */ sendInput: (text: string, source?: string) => void; /** Send encoded key input to this pane's PTY. */ sendKeyInput: (text: string, source?: string) => void; /** Pause or resume rendering for this pane. */ setPaused: (paused: boolean) => void; /** Switch the renderer for this pane. */ setRenderer: (value: 'auto' | 'webgpu' | 'webgl2') => void; /** Check if this pane's PTY is connected. */ isPtyConnected: () => boolean; /** Connect this pane's PTY to a URL. */ connectPty: (url?: string) => void; /** Disconnect this pane's PTY. */ disconnectPty: () => void; /** Clear this pane's screen. */ clear: () => void; } /** * Hook for operating on an individual restty pane. * * @param paneId - Target pane ID. If omitted, operates on the active pane. */ export declare function useResttyPane(paneId?: number): IUseResttyPaneReturn; //# sourceMappingURL=useResttyPane.d.ts.map