import { SessionResourceSource } from '@cee-eng/hydrajs/@types/api/pcm/troubleshootSession'; import { RouteComponentProps } from 'react-router-dom'; import { AppRouteSections, IRouteQueryParams, IRouteUrlParams } from '../reducers/RouteConstNTypes'; export default class RouteUtils { static seBasePath: string; /** * parses and makes/replaces the url query params into a js object. * THIS FUNCTION DOES NOT CHANGE THE URL PARAMS BY ITSELF, IT JUST CREATES THE OBJECT NEEDED BY THE ROUTER! * * @param routeProps see react-router. * @param replacementQueries This object replaces old query values with its own. If the value of a property of this object * is empty by lodash isEmpty standards it will be removed from the returned query object. */ static getQueryParams(routeProps: RouteComponentProps, replacementQueries?: IRouteQueryParams): IRouteQueryParams; static getQueryString(routeProps: RouteComponentProps, resetSearchParams?: boolean, newQueries?: IRouteUrlParams): string; static getDefaultSection(isCaseCreate: boolean, isSearchIntent: boolean): AppRouteSections; static navigateToDefaltSection(routeProps: RouteComponentProps, isCaseCreate: boolean, isSearchIntent: boolean, resetSearchParams: boolean, newQueryParams?: IRouteQueryParams): void; static navigateToSection(routeProps: RouteComponentProps, newSection: string, resetSearchParams: boolean, newQueryParams?: IRouteQueryParams): void; static updateQueryParams(routeProps: RouteComponentProps, newParams: IRouteQueryParams, resetOldParams?: boolean): void; static getSEResourceQueryParams(seSessionId: string, seResourceOriginID: string, seSource: SessionResourceSource, band?: string): string; } //# sourceMappingURL=routeUtils.d.ts.map