/** * AvocadoProvider - React context for the TerminalBackend * * Replaces all window.desktopAPI references. Consumers provide their own * TerminalBackend implementation (Electron IPC, WebSocket, REST, etc.). */ import { type ReactNode } from 'react'; import type { TerminalBackend } from '#types'; export declare const AvocadoContext: import("react").Context; export interface AvocadoProviderProps { backend: TerminalBackend; children: ReactNode; } export declare function AvocadoProvider({ backend, children }: AvocadoProviderProps): import("react/jsx-runtime").JSX.Element; /** * Hook to access the TerminalBackend from context. * Throws if used outside . */ export declare function useAvocadoBackend(): TerminalBackend; /** * Hook to access the TerminalBackend from context, returning null if no * is present. Use this when the caller needs to detect * availability without throwing. */ export declare function useAvocadoBackendOptional(): TerminalBackend | null; export default AvocadoProvider; //# sourceMappingURL=AvocadoProvider.d.ts.map