import { Route } from './Route'; import { State } from './State'; import { PageParams } from './Types'; export declare class Location { route: Route; state: State; constructor(route: Route, state: State); /** * @ignore * @param viewId */ getLastPanelInView(viewId: string): string | undefined; /** * Массив из id панелей для передачи в атрибут history * * ```javascript * import { useLocation } from '@happysanta/router'; * * const App = () => { * const location = useLocation(); * return * * * * } * ``` * * @param viewId */ getViewHistory(viewId: string): string[]; getViewHistoryWithLastPanel(viewId: string): string[]; /** * @deprecated use getViewActivePanel * @ignore * @param viewId */ getPanelIdInView(viewId: string): string | undefined; getViewActivePanel(viewId: string): string | undefined; getPanelId(): string; getViewId(): string; getRootId(): string; getModalId(): string | null; getPopupId(): string | null; getPageId(): string; getParams(): PageParams; hasOverlay(): boolean; /** * Если вам надо отрисовать стрелочку назад или домик то используйте эту функцию */ isFirstPage(): boolean; }