import { default as React } from 'react'; import { PolymorphicComponentPropsWithRef } from '../../../utils'; export type SegmentedChoiceOwnProps = { /** Verdien til valget */ value: string; /** Innhold som beskriver valget */ children: React.ReactNode; /** Ekstra klassenavn */ className?: string; /** Callback for når valget endres */ onChange?: (value: string) => void; }; export type SegmentedChoiceProps = PolymorphicComponentPropsWithRef; export type SegmentedChoiceComponent = (props: SegmentedChoiceProps) => React.ReactElement | null; declare const defaultElement = "button"; export declare const SegmentedChoice: SegmentedChoiceComponent; export {};