import { LinkKind } from '@components/common/page-builder/pickers/LinkPicker.js'; import React from 'react'; /** * Composite editor for a call-to-action: label, URL (via LinkPicker), * new-tab toggle, and an optional visual style. Used by every widget that * has CTA buttons (split feature, coupon block, bento tiles, brand story, * collection spotlight, etc.). * * The shape stored in widget settings is: * * { label, url, kind?, newTab, style? } * * `kind` is admin-only — the storefront ignores it. Keeping it lets us * re-open the picker on the same tab the merchant used last. */ export interface CtaValue { label: string; url: string; kind?: LinkKind; newTab?: boolean; style?: CtaStyle; } export type CtaStyle = 'primary' | 'secondary' | 'ghost' | 'link'; export interface CtaFieldProps { value: CtaValue; onChange: (next: CtaValue) => void; /** When false, the visual-style segmented control is hidden. */ showStyle?: boolean; /** Label placeholder, e.g. "Shop now". */ labelPlaceholder?: string; } export declare function CtaField({ value, onChange, showStyle, labelPlaceholder }: CtaFieldProps): React.JSX.Element; export declare function ctaButtonVariant(style: CtaStyle | undefined): "link" | "default" | "outline" | "ghost";