import * as React from 'react'; import { type BarButtonProps } from 'navigation-react-native'; /** * A cross-platform, iOS-flavoured navigation header. * * One API, two renderers: * - native (this file): the real UINavigationBar / Material toolbar via * navigation-react-native — large title collapses on scroll, real * `barTintColor` immersive header, native `RightBar` bar buttons. * - web (CollapsingHeader.web.tsx): an iOS-styled DOM header that mirrors the * same look/feel — sticky compact bar, large title that collapses on scroll, * trailing actions, optional colored/immersive tint. * * The `actions` are described declaratively so the SAME array drives native * ``s (SF Symbol / systemItem) and web DOM buttons. */ export type HeaderAction = { key: string; /** a11y label + web button text/title. */ label: string; onPress: () => void; /** Native: SF Symbol name (iOS) e.g. 'square.and.arrow.up'. */ sfSymbol?: string; /** Native: UIKit system item e.g. 'add' | 'action' | 'edit'. */ systemItem?: BarButtonProps['systemItem']; /** Web: glyph/emoji or short text shown in the DOM button. */ webGlyph?: string; }; export type CollapsingHeaderProps = { title: string; largeTitle?: boolean; /** Immersive solid tint for the whole header (App Store style). */ barTintColor?: string; /** Foreground color for title + actions (defaults to system label color). */ tintColor?: string; actions?: HeaderAction[]; /** The scrollable scene content the header sits above. */ children: React.ReactNode; }; export default function CollapsingHeader({ title, largeTitle, barTintColor, tintColor, actions, children, }: CollapsingHeaderProps): React.JSX.Element; //# sourceMappingURL=CollapsingHeader.d.ts.map