/** * Copyright IBM Corp. 2025, 2026 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import { RefObject } from 'react'; /** * ------------- * Context setup * ------------- */ export type PageHeaderRefs = { contentRef?: RefObject; titleRef?: RefObject; contentActions?: RefObject; breadcrumbActions?: RefObject; }; export type PageHeaderObserverState = { fullyCollapsed: boolean; titleClipped: boolean; contentActionsClipped: boolean; }; type PageHeaderContextType = { refs?: PageHeaderRefs; setRefs: React.Dispatch>; pageActionsInstance?: React.ReactNode | ((state: PageHeaderObserverState) => React.ReactNode); setPageActionsInstance: React.Dispatch React.ReactNode)>>; observerState: PageHeaderObserverState; isContentActionsInBreadcrumbBar?: boolean; isFunctionalContentActions?: boolean; disableStickyTabBar?: boolean; setDisableStickyTabBar?: React.Dispatch>; fullWidthGrid?: boolean | 'xl'; narrowGrid?: boolean; }; export declare const PageHeaderContext: import("react").Context; export declare function usePageHeader(): PageHeaderContextType; export {};