UNPKG

@clerk/shared

Version:

Internal package utils used by the Clerk SDKs

14 lines (11 loc) 734 B
import { PublishableKey } from '@clerk/types'; declare function buildPublishableKey(frontendApi: string): string; declare function parsePublishableKey(key: string | undefined): PublishableKey | null; declare function isPublishableKey(key: string): boolean; declare function isLegacyFrontendApiKey(key: string): boolean; declare function createDevOrStagingUrlCache(): { isDevOrStagingUrl: (url: string | URL) => boolean; }; declare function isDevelopmentFromApiKey(apiKey: string): boolean; declare function isProductionFromApiKey(apiKey: string): boolean; export { buildPublishableKey, createDevOrStagingUrlCache, isDevelopmentFromApiKey, isLegacyFrontendApiKey, isProductionFromApiKey, isPublishableKey, parsePublishableKey };