react-application-core
Version:
A react-based application core for the business applications.
66 lines (65 loc) • 1.78 kB
TypeScript
import { IKeyValue } from '../definitions.interface';
import { ITransportUrlConfigEntity } from '../definition';
/**
* @stable [07.10.2019]
* @returns {string}
*/
export declare const getCurrentUrlPath: () => string;
/**
* @stable [13.03.2020]
* @param {string} sectionRoute
* @returns {string}
*/
export declare const getSectionFullPath: (sectionRoute: string) => string;
/**
* @stable [13.03.2020]
* @returns {string}
*/
export declare const getFullPath: () => string;
/**
* @stable [13.03.2020]
* @returns {TParams}
*/
export declare const getUrlQueryParams: <TParams = IKeyValue>() => TParams;
/**
* @stable [13.03.2020]
* @returns {string}
*/
export declare const getUrlDirectory: () => string;
/**
* @stable [13.03.2020]
* @returns {string}
*/
export declare const getUrlHost: () => string;
/**
* @stable [13.03.2020]
* @returns {string}
*/
export declare const getUrlProtocol: () => string;
export declare const getURLSearchParams: (search: string) => any;
/**
* @stable [12.09.2018]
* @param {string} url
* @returns {string}
*/
export declare const prepareUrl: (url: string) => string;
/**
* @stable [16.09.2019]
* @param {ITransportUrlConfigEntity} config
* @returns {string}
*/
export declare const buildTransportUrl: (config: ITransportUrlConfigEntity) => string;
/**
* @stable [08.01.2020]
* @param {string} initialUrl
* @param {IKeyValue} args
* @returns {string}
*/
export declare const appendUrlArgs: (initialUrl: string, args: IKeyValue) => string;
/**
* @stable [14.06.2020]
*/
export declare class UrlUtils {
static readonly buildEncodedURI: <TParams = IKeyValue>(params: TParams) => string;
static readonly isAbsoluteURI: (uri: string) => boolean;
}