/** Prefix on RulesCMS client tokens for Development / non-publishable environments. */ export declare const DEV_CLIENT_TOKEN_PREFIX = "dev."; /** Live draft API host — RulesCMS production. */ export declare const RULECMS_API_ORIGIN = "https://rulecms.com"; /** Published (cached) API host. */ export declare const WIDGET_CACHE_API_ORIGIN = "https://widget-cache.rulecms.com"; /** Published (cached) client API path. */ export declare const PUBLISHED_WIDGET_API_PATH = "/api/v1/c/widget/get"; /** Live draft client API path — no cache; reads the widget table directly. */ export declare const DEV_WIDGET_API_PATH = "/api/v1/c/dev/widget/get"; /** Published ruleset resolve path (POST). */ export declare const PUBLISHED_WIDGET_RESOLVE_API_PATH = "/api/v1/c/widget/resolve"; /** Live draft ruleset resolve path (POST). */ export declare const DEV_WIDGET_RESOLVE_API_PATH = "/api/v1/c/dev/widget/resolve"; export declare function isDevClientToken(token: string | null | undefined): boolean; /** * Resolves the API origin. Consumers normally omit `endpoint` — * Development tokens hit RulesCMS; published tokens hit widget-cache. */ export declare function resolveWidgetApiOrigin(token: string, endpoint?: string): string; export interface BuildWidgetFetchUrlParams { publishedKey: string; token: string; endpoint?: string; } /** * Builds the widget fetch URL. * * Development tokens (`dev.…`) hit the uncached draft endpoint with * `widgetKey`; everything else uses the published API with `publishedKey`. */ export declare function buildWidgetFetchUrl({ publishedKey, token, endpoint, }: BuildWidgetFetchUrlParams): string; export interface BuildWidgetResolveUrlParams { token: string; endpoint?: string; } /** * Ruleset resolve URL. The token, ruleset key, and params travel in the POST * body. `dev.` tokens hit the draft route; everything else uses the published one. */ export declare function buildWidgetResolveUrl({ token, endpoint }: BuildWidgetResolveUrlParams): string; //# sourceMappingURL=build-widget-fetch-url.d.ts.map