import * as React from 'react'; import { type NavIdProps } from '../../lib/getNavId'; import type { HasPlatform, HTMLAttributesWithRootRef } from '../../types'; import { type ScrollContextInterface } from '../AppRoot/ScrollContext'; import { type ConfigProviderContextInterface } from '../ConfigProvider/ConfigProviderContext'; import { type SplitColContextProps } from '../SplitCol/SplitColContext'; export declare let scrollsCache: Map>; export type TransitionParams = { from: string | null; to: string | null; }; export interface ViewInfiniteProps extends HTMLAttributesWithRootRef, HasPlatform, NavIdProps { /** * `id` активной панели. */ activePanel: string; /** * Обработчик, который вызывается при завершении анимации смены активной панели. */ onTransition?: ((params: TransitionParams & { isBack: boolean; }) => void) | undefined; /** * Обработчик свайпа назад. */ onSwipeBack?: (() => void) | undefined; /** * Обработчик начала анимации свайпа назад. */ onSwipeBackStart?: ((activePanel: string | null) => void | 'prevent') | undefined; /** * Обработчик завершения анимации отмененного пользователем свайпа. */ onSwipeBackCancel?: (() => void) | undefined; /** * Массив из id панелей в порядке открытия. */ history?: string[] | undefined; /** * Функция проверки перехода назад. */ isBackCheck?: ((params: TransitionParams) => boolean) | undefined; /** * @ignore */ splitCol?: SplitColContextProps | undefined; /** * @ignore */ configProvider?: ConfigProviderContextInterface | undefined; /** * @ignore */ scroll?: ScrollContextInterface | undefined; } export interface ViewInfiniteState { animated: boolean; visiblePanels: Array; activePanel: string | null; isBack?: boolean | undefined; prevPanel: string | null; nextPanel: string | null; swipingBack?: boolean | undefined; swipeBackStartX: number; swipeBackShift: number; swipeBackNextPanel: string | null; swipeBackPrevPanel: string | null; swipeBackResult: 'success' | 'fail' | null; browserSwipe: boolean; } export declare const ViewInfinite: React.FC; //# sourceMappingURL=ViewInfinite.d.ts.map