import type { Shell, ShellConfig } from '@astrale-os/shell'; import type { ReactElement, ReactNode } from 'react'; export type ShellError = { readonly kind: 'connection'; readonly error: unknown; }; export interface ShellProviderProps { /** A Shell configuration or an already-constructed Shell capability. */ readonly config: ShellConfig | Shell; readonly fallback?: ReactNode; readonly errorFallback?: (error: unknown, retry: () => void) => ReactNode; readonly onError?: (error: ShellError) => void; readonly children: ReactNode; } /** Own and initialize exactly one Shell for a React subtree. */ export declare function ShellProvider(props: ShellProviderProps): ReactElement | null; //# sourceMappingURL=provider.d.ts.map