synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
10 lines • 685 B
TypeScript
export declare function getOneSageBaseUrl(currentHostname: string, currentBackendEndpoint: string): string;
export declare function getOneSageUrl(currentHostname: string, currentBackendEndpoint: string, appId?: string, path?: string, search?: URLSearchParams, hash?: string): URL;
/**
* Create a URL to OneSage that includes the current app's ID using SynapseContext
* @param path the path to the OneSage page
* @param search an optional set of URLSearchParams to append to the URL
* @param hash an optional hash to append to the URL
*/
export declare function useOneSageURL(path?: string, search?: URLSearchParams, hash?: string): URL;
//# sourceMappingURL=useOneSageURL.d.ts.map