import type { WidgetResolveContentType, WidgetSelectionParams } from './types'; export declare const DEFAULT_WIDGET_RESOLVE_CONTENT_TYPE: WidgetResolveContentType; export interface BuildWidgetResolveRequestBodyParams { token: string; rulesetPublishedKey: string; params?: WidgetSelectionParams; } /** * Body for the resolve POST. Published tokens send * `{ token, rulesetPublishedKey, params, mode: 'payload' }`; `dev.` tokens hit * the draft route, which wants the bare `rulesetKey` and no `mode`. */ export declare function buildWidgetResolveRequestBody({ token, rulesetPublishedKey, params, }: BuildWidgetResolveRequestBodyParams): Record; export interface BuildWidgetResolveRequestInitParams extends BuildWidgetResolveRequestBodyParams { contentType?: WidgetResolveContentType; } /** * `fetch` init for the resolve POST. `Content-Type` is the only header — * `text/plain` keeps the request CORS-simple (no preflight); anything else * would add one, so nothing else is set here. */ export declare function buildWidgetResolveRequestInit({ contentType, ...bodyParams }: BuildWidgetResolveRequestInitParams): RequestInit; //# sourceMappingURL=build-widget-resolve-request.d.ts.map