/** * ResttyContext — provides the Restty instance to descendant hooks. * * Set by ResttyTerminal after initialization. Consumed by useRestty, * useResttyPane, useResttyPanes, and useResttyPlugins. * * @module Terminal/restty/ResttyContext */ import { type ReactNode } from 'react'; import type { Restty } from '@mks2508/restty'; /** * Context value exposing the Restty instance and readiness flag. */ export interface IResttyContextValue { /** The underlying Restty instance, or null before initialization. */ restty: Restty | null; /** Whether the Restty instance has been initialized and is ready. */ isReady: boolean; } /** * Provides a Restty instance to descendant components. */ export declare function ResttyProvider({ restty, isReady, children, }: IResttyContextValue & { children: ReactNode; }): import("react/jsx-runtime").JSX.Element; /** * Access the Restty instance from context. * * Must be called within a ResttyTerminal or ResttyProvider tree. * * @example * ```tsx * const { restty, isReady } = useRestty(); * if (isReady) restty.splitActivePane("vertical"); * ``` */ export declare function useRestty(): IResttyContextValue; //# sourceMappingURL=ResttyContext.d.ts.map