import type { CSSProperties, PointerEvent, ReactNode } from 'react';
import type { BaseConditionalColorOperator, IBaseConditionalColorRule } from '../conditional-coloring/ConditionalColoringPanel';
import type { IBaseMenuFieldItem } from '../field-config/FieldConfigPanel';
import { LocaleService } from '@univerjs/core';
export declare function runPrimaryClick(eventOrAction?: unknown, action?: () => void): void;
export declare function PanelFrame(props: {
    children: ReactNode;
    className?: string;
    style?: CSSProperties;
}): import("react").JSX.Element;
export declare function ActionButton(props: {
    icon: ReactNode;
    trailing?: ReactNode;
    label: ReactNode;
    danger?: boolean;
    tone?: 'primary';
    onAction: () => void;
}): import("react").JSX.Element;
export declare function getConditionalPanelWidth(rules: IBaseConditionalColorRule[], fields: IBaseMenuFieldItem[], localeService: LocaleService): number;
export interface IConditionalColorAnchor {
    left: number;
    top: number;
    height: number;
}
export declare function ConditionalColorRuleRow(props: {
    fields: IBaseMenuFieldItem[];
    rule: IBaseConditionalColorRule;
    colorPickerOpen: boolean;
    colorPickerAnchor: IConditionalColorAnchor | null;
    dragging: boolean;
    dropPosition: 'before' | 'after' | null;
    onColorPickerOpenChange: (open: boolean, anchor?: IConditionalColorAnchor) => void;
    onChange: (patch: Partial<IBaseConditionalColorRule>, options?: {
        debounce?: boolean;
    }) => void;
    onRemove: () => void;
    onDragStart: () => void;
}): import("react").JSX.Element;
export declare function startDragFromHandle(event: PointerEvent<HTMLSpanElement>, onDragStart: () => void): void;
export declare function conditionalOperatorsForField(field?: IBaseMenuFieldItem): BaseConditionalColorOperator[];
export declare function conditionalOperatorLabel(operator: BaseConditionalColorOperator, localeService: LocaleService): string;
export declare function createConditionalRule(field?: IBaseMenuFieldItem, index?: number): IBaseConditionalColorRule;
export declare function ensureConditionalRuleForField(rule: IBaseConditionalColorRule, field?: IBaseMenuFieldItem): IBaseConditionalColorRule;
export declare function reorderConditionalRules(rules: IBaseConditionalColorRule[], movingId: string, targetId: string, placeAfterTarget: boolean): IBaseConditionalColorRule[];
export declare function defaultConditionalOperand(field?: IBaseMenuFieldItem): unknown;
export declare function normalizeHexColor(color: string): string;
export declare function CalendarColorButton(props: {
    color: string;
    onChange: (color: string) => void;
}): import("react").JSX.Element;
