import * as React from 'react' import { ScrollViewProps, Animated, FlatListProps, SectionListProps } from 'react-native' export type InterpolatedHeaderTranslation = (from: number, to: number) => Animated.AnimatedInterpolation export type AnimationConfig = { animated?: boolean } export type CollapsibleHeaderProps = { interpolatedHeaderTranslation: InterpolatedHeaderTranslation showHeader: (options: AnimationConfig | unknown) => void hideHeader: (options: AnimationConfig | unknown) => void } export type CollapsibleHeaderViewProps = T & { readonly CollapsibleHeaderComponent: React.ReactElement | React.ComponentType readonly headerHeight: number readonly statusBarHeight?: number readonly headerContainerBackgroundColor?: string readonly disableHeaderSnap?: boolean readonly headerAnimationDuration?: number readonly clipHeader?: boolean } declare class CollapsibleHeaderView extends React.Component< CollapsibleHeaderViewProps > { public showHeader: (options: AnimationConfig | unknown) => void public hideHeader: (options: AnimationConfig | unknown) => void public animatedComponent: () => any | null } export declare class CollapsibleHeaderScrollView extends CollapsibleHeaderView { } export declare class CollapsibleHeaderFlatList extends CollapsibleHeaderView> { } export declare class CollapsibleHeaderSectionList extends CollapsibleHeaderView> { } export function withCollapsibleHeader( Component: React.ComponentClass ): React.ComponentClass>