import type { HTMLAttributes } from "svelte/elements";
type SegmentSize = "sm" | "md";
type SegmentOption = string | {
value: string;
label: string;
};
interface Props extends Omit, "onchange"> {
/** Options: plain strings (value === label) or `{ value, label }` objects. */
options: SegmentOption[];
/** Currently selected value (controlled / bindable). */
value?: string;
/** Accessible name for the radiogroup, applied as aria-label. */
label: string;
/** Padding + font-size scale. @default 'md' */
size?: SegmentSize;
/** Polymorphic root element. @default 'div' */
as?: string;
/** Called with the newly selected value string when a segment is activated. */
onchange?: (value: string) => void;
[key: string]: unknown;
}
declare const SegmentedControl: import("svelte").Component;
type SegmentedControl = ReturnType;
export default SegmentedControl;