/** * A minimal variant option descriptor consumed by {@link resolveStaleVariantRoute}. */ export interface UmbStaleVariantRouteResolverVariant { culture: string | null; segment: string | null; unique: string; } /** * The arguments for {@link resolveStaleVariantRoute}. */ export interface UmbStaleVariantRouteResolverArgs { /** * The current location pathname, e.g. window.location.pathname. */ currentPath: string; /** * The absolute router path of the workspace, without a trailing slash. */ workspaceRoute: string; /** * The available variant options. */ variants: Array; /** * The culture currently selected in the app language switcher. */ appCulture?: string; } /** * Checks whether the variant part of a workspace URL refers to variant options that no longer exist — * e.g. after the content type's Vary by Culture setting changed — and resolves a corrected path. * Split-view parts are resolved individually and deduplicated. * @param {UmbStaleVariantRouteResolverArgs} args - The current path, workspace route, variant options and app culture. * @returns {string | null} The corrected path without the query string, or null when the URL is valid or not applicable. */ export declare function resolveStaleVariantRoute(args: UmbStaleVariantRouteResolverArgs): string | null;