UNPKG

@clerk/shared

Version:

Internal package utils used by the Clerk SDKs

23 lines (21 loc) 1.01 kB
declare function parseSearchParams(queryString?: string): URLSearchParams; declare function stripScheme(url?: string): string; declare function addClerkPrefix(str: string | undefined): string; /** * * Retrieve the clerk-js major tag using the major version from the pkgVersion * param or use the frontendApi to determine if the staging tag should be used. * The default tag is `latest` and a `next` pkgVersion also exists to retrieve * the next canary release. */ declare const getClerkJsMajorVersionOrTag: (frontendApi: string, pkgVersion?: string) => string; /** * * Retrieve the clerk-js script url from the frontendApi and the major tag * using the {@link getClerkJsMajorVersionOrTag} or a provided clerkJSVersion tag. */ declare const getScriptUrl: (frontendApi: string, { pkgVersion, clerkJSVersion }: { pkgVersion?: string | undefined; clerkJSVersion?: string | undefined; }) => string; export { addClerkPrefix, getClerkJsMajorVersionOrTag, getScriptUrl, parseSearchParams, stripScheme };