import * as React from 'react'; import { type NavIdProps } from '../../lib/getNavId'; import type { HTMLAttributesWithRootRef } from '../../types'; export interface RootProps extends HTMLAttributesWithRootRef, NavIdProps { /** * `id` активной `View`. */ activeView: string; /** * Обработчик, который вызывается при завершении анимации смены активной `View`. */ onTransition?: (params: { isBack: boolean; from: string; to: string; }) => void; /** * Коллекция `View`. У каждой `View` должен быть `id`. */ children: React.ReactElement | Iterable; } export interface RootState { activeView: string; transition: boolean; isBack?: boolean; prevView?: string; } /** * @see https://vkui.io/components/root */ export declare const Root: ({ children, activeView: _activeView, onTransition, nav, ...restProps }: RootProps) => React.ReactNode; //# sourceMappingURL=Root.d.ts.map