import type { LayoutData_Backdrop, LayoutData_Background } from '@wix/ricos/schema';
import type { PmLayoutNode } from '../../_shared/pm-node-types.js';
export type LayoutFill = PmLayoutNode['attrs']['background'];
export type LayoutFillKey = 'background' | 'backdrop';
type LayoutFillColor = Extract<NonNullable<LayoutFill>, {
    type: 'COLOR';
}>['color'];
type LayoutFillGradient = Extract<NonNullable<LayoutFill>, {
    type: 'GRADIENT';
}>['gradient'];
type LegacyLayoutFill = Pick<LayoutData_Background, 'type' | 'color' | 'gradient'> | Pick<LayoutData_Backdrop, 'type' | 'color' | 'gradient'>;
type LayoutFillInput = LayoutFill | LegacyLayoutFill;
export declare const toLayoutFill: (value: {
    color?: LayoutFillColor;
    gradient?: LayoutFillGradient;
} | undefined) => LayoutFill;
export declare const getLegacyLayoutFillColorKey: (fillKey: LayoutFillKey) => "backdropColor" | "backgroundColor";
export declare function resolveLayoutFill(fill: LayoutFillInput, legacyColor?: string | null): LayoutFill;
export declare const getLayoutFillColor: (fill: LayoutFillInput) => string | undefined;
export declare const getLayoutFillGradient: (fill: LayoutFillInput) => LayoutFillGradient | undefined;
export declare const getResolvedLayoutFillColor: (fill: LayoutFillInput, legacyColor?: string) => string | undefined;
export declare const getResolvedLayoutFillGradient: (fill: LayoutFillInput, legacyColor?: string) => import("@wix/ricos/next/schema").Gradient | undefined;
export declare const hasVisibleLayoutFill: (fill: LayoutFillInput) => boolean;
export declare const isTransparentOrEmptyLayoutFill: (fill: LayoutFillInput) => boolean;
export declare const clearTransparentLayoutFill: (fill: LayoutFill) => LayoutFill;
export declare const getLayoutFillPatch: (fillKey: LayoutFillKey, fill: LayoutFill) => Partial<PmLayoutNode['attrs']>;
export declare const parseLayoutFillHtmlAttr: (serializedFill: string | null, legacyColor: string | null, defaultColor: string | null) => {
    fill: LayoutFill;
    legacyColor: string | undefined;
};
export declare const getLayoutFillHtmlAttrs: ({ fill, legacyColor, fillKey, }: {
    fill: LayoutFill;
    legacyColor?: string;
    fillKey: LayoutFillKey;
}) => Record<string, string>;
export {};
//# sourceMappingURL=layout-fill.d.ts.map