import { INavPage } from '../components/Nav/index'; import { ISiteDefinition } from './SiteDefinition.types'; /** * Returns whether the given page URL or hash route is active. * Non-hash URLs are assumed to be external and therefore never active since the current component * implementations in this package assume hash routing in many places. * @param pageUrl URL or hash route for a page * @param currentPath Optional current normalized path (optimization if calling this multiple times) */ export declare function isPageActive(pageUrl: string, currentPath?: string): boolean; /** * Returns whether the given page or a child (for the current platform, if provided) is active. * @param page Page to check * @param platform Current platform * @param currentPath Optional current normalized path (optimization if calling this multiple times) */ export declare function hasActiveChild(page: INavPage, platform?: TPlatforms, currentPath?: string): boolean; /** * Checks if any of the pages in the object (either site definition or nav page) are active or have * an active child (for the current platform, if provided), and returns the active page if found. * @param parent Page or site definition to check * @param platform Current platform * @param currentPath Optional current normalized path (optimization if calling this multiple times) */ export declare function getActivePage(parent: INavPage | ISiteDefinition, platform?: TPlatforms, currentPath?: string): INavPage | undefined;