import type { PropsWithChildren } from 'react'; import type { WorkspaceNavigation } from '../../context/WorkspaceNavigationContext'; /** * Overrides members of the {@link WorkspaceNavigation} that ChatView derives, e.g. to open channels * beside the current content on cmd/ctrl-click. Receives the derived navigation as `base`, to * delegate to, and returns the members to replace; members left out or `undefined` keep the * default. Must be referentially stable (wrap in `useCallback`): it is a dependency of the * adapter's `useMemo`. */ export type DeriveWorkspaceNavigation = (base: WorkspaceNavigation) => Partial; export type WorkspaceNavigationAdapterProps = { deriveWorkspaceNavigation?: DeriveWorkspaceNavigation; }; /** * Implements {@link WorkspaceNavigation} over the ChatView slot state and provides it to the * subtree. Must render inside `ChatViewNavigationProvider` (it drives `open`, `close` and * `release`) and the ChatView context. `deriveWorkspaceNavigation` overrides members; the rest * stay as derived here. */ export declare const WorkspaceNavigationAdapter: ({ children, deriveWorkspaceNavigation, }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=workspaceNavigationAdapter.d.ts.map