import React, { PropsWithChildren, ReactNode } from 'react'; import { Animated, FlatListProps } from 'react-native'; import type { ColorName } from '../../context/theme/types'; import { ScrollViewProps } from '../ScrollView'; import { SxProps } from '../../lib/styleDictionary'; export type TitleStickyPosition = 'left' | 'center' | 'right'; export type BackgroundStickyProps = { initial?: ColorName; sticky?: ColorName; } | [initial?: ColorName, sticky?: ColorName]; export type TitleStickyProps = { initial?: ReactNode; sticky?: ReactNode; } | [initial?: ReactNode, sticky?: ReactNode]; export type TitleStickyPositionProps = { initial?: TitleStickyPosition; sticky?: TitleStickyPosition; } | [initial?: TitleStickyPosition, sticky?: TitleStickyPosition]; export type StickyHeaderProps = PropsWithChildren<{ hidden?: boolean; animateInHeight?: number; statusBarHeight?: number; keepStatusHeight?: boolean; scrollOffsetY?: Animated.Value; background?: BackgroundStickyProps; title?: TitleStickyProps; titlePosition?: TitleStickyPositionProps; header?: React.ComponentType>; scrollComponent?: React.ComponentType; scrollProps?: ScrollViewProps | FlatListProps; icon?: { left?: ReactNode; right?: ReactNode; }; styles?: { scroll?: SxProps; header?: SxProps; headerSticky?: SxProps; title?: SxProps; titleSticky?: SxProps; }; }>; export type HeaderProps = StickyHeaderProps & { setHeightLayout: (height: number) => void; isSticky: boolean; }; //# sourceMappingURL=types.d.ts.map