import React from 'react'; /** * Drawer-style primitives shared by every widget setting form. Same vocabulary * across the codebase: an 11px-label `Field`, a collapsible `Section` card, * a `Segmented` radio-style control, and a `Slider` whose drag commits on * release (controlled-value updates on every frame made dragging feel like * a click — see slideshow drawer history). * * Until this module landed, every drawer (Slideshow / Banner / Menu / * Collection / Columns) inlined its own copies. Behaviour now flows from * here; the per-widget files just compose these. */ export declare function Field({ label, hint, children }: { label?: string; hint?: string; children: React.ReactNode; }): React.JSX.Element; export declare function Section({ title, children, rightSlot, defaultOpen }: { title: string; children: React.ReactNode; rightSlot?: React.ReactNode; defaultOpen?: boolean; }): React.JSX.Element; export declare function Segmented({ value, options, onChange, size }: { value: T; options: ReadonlyArray<{ value: T; label: string; icon?: React.ReactNode; title?: string; }>; onChange: (v: T) => void; size?: 'sm' | 'md'; }): React.JSX.Element; export declare function Slider({ value, min, max, step, onCommit, unit, format }: { value: number; min: number; max: number; step?: number; onCommit: (v: number) => void; unit?: string; format?: (v: number) => string; }): React.JSX.Element; export declare function Toggle({ label, description, checked, onChange, disabled }: { label: string; description?: string; checked: boolean; onChange: (v: boolean) => void; disabled?: boolean; }): React.JSX.Element; export declare const drawerInputClass = "w-full rounded-md border border-divider bg-card px-3 py-2 text-sm focus:outline-none focus:ring-1 focus:ring-primary"; export declare const drawerTextareaClass = "w-full resize-vertical rounded-md border border-divider bg-card px-3 py-2 text-sm focus:outline-none focus:ring-1 focus:ring-primary";