import type { NormalizedWidgetResolveResult } from './types'; export interface NormalizeWidgetResolveResponseParams { token: string; /** As passed by the caller; echoed on the dev selection, which has no envelope of its own. */ rulesetPublishedKey: string; /** Parsed JSON body of a 2xx resolve response. */ body: unknown; } /** * Reduces either resolve response shape to the existing widget payload plus a * `selection`. Published: `{ success, data: { …payload, selection } }`. * Draft (`dev.` token): unwrapped `{ resolution, widget, childCollections, …css }`. * Returns `null` when the body is not a successful resolve. */ export declare function normalizeWidgetResolveResponse({ token, rulesetPublishedKey, body, }: NormalizeWidgetResolveResponseParams): NormalizedWidgetResolveResult | null; //# sourceMappingURL=normalize-widget-resolve-response.d.ts.map