/** * Generic navigation helpers and utilities * Platform-agnostic navigation structures and functions */ export interface NavigationItem { label: string; href: string; isExternal?: boolean; isActive?: boolean; } export interface BreadcrumbItem { label: string; href?: string; current?: boolean; } export declare const getActiveNavItem: (currentPath: string, items: NavigationItem[]) => NavigationItem | null; export declare const createBreadcrumb: (path: string, customLabel?: string, pathLabels?: Record) => BreadcrumbItem[]; export interface CTAButton { label: string; href: string; variant?: string; isExternal?: boolean; } export declare const navigationUtils: { /** * Check if a path is currently active */ isActivePath: (currentPath: string, targetPath: string, exact?: boolean) => boolean; /** * Get parent path from current path */ getParentPath: (path: string) => string; /** * Extract route parameters from path patterns */ extractParams: (pattern: string, path: string) => Record; /** * Build URL with query parameters */ buildUrlWithParams: (path: string, params: Record) => string; /** * Parse query parameters from URL */ parseQueryParams: (search: string) => Record; /** * Normalize path (remove trailing slash, ensure leading slash) */ normalizePath: (path: string) => string; /** * Check if URL is external */ isExternalUrl: (url: string) => boolean; }; declare const _default: { getActiveNavItem: (currentPath: string, items: NavigationItem[]) => NavigationItem | null; createBreadcrumb: (path: string, customLabel?: string, pathLabels?: Record) => BreadcrumbItem[]; navigationUtils: { /** * Check if a path is currently active */ isActivePath: (currentPath: string, targetPath: string, exact?: boolean) => boolean; /** * Get parent path from current path */ getParentPath: (path: string) => string; /** * Extract route parameters from path patterns */ extractParams: (pattern: string, path: string) => Record; /** * Build URL with query parameters */ buildUrlWithParams: (path: string, params: Record) => string; /** * Parse query parameters from URL */ parseQueryParams: (search: string) => Record; /** * Normalize path (remove trailing slash, ensure leading slash) */ normalizePath: (path: string) => string; /** * Check if URL is external */ isExternalUrl: (url: string) => boolean; }; }; export default _default; //# sourceMappingURL=navigationHelpers.d.ts.map