import type { ViewProps } from "@tarojs/components/types/View"; import { type PageScrollObject } from "@tarojs/taro"; import { type CSSProperties, type MutableRefObject, type ReactNode } from "react"; type StickyPosition = "top" | "bottom"; interface StickyOffset { top?: number | string; bottom?: number | string; } interface StickyProps extends ViewProps { className?: string; style?: CSSProperties; position?: StickyPosition; offset?: StickyOffset; offsetTop?: number | string; offsetBottom?: number | string; container?: MutableRefObject; children?: ReactNode; onChange?(fixed: boolean): void; onScroll?(scroll: PageScrollObject): void; } export default function Sticky(props: StickyProps): JSX.Element; export {};