import { PropsWithChildren } from 'react'; import { FlowComponentProps } from '../../lib/componentFactory/flowComponent'; import * as Aria from "react-aria-components"; export interface OptionProps extends Omit, PropsWithChildren, FlowComponentProps { /** * The value this option contributes to the field's selection, and the key * `defaultValue` / `value` of the surrounding field target. * * Defaults to `textValue`, which itself defaults to the text among the * option's children — element children such as a `Badge` do not contribute, * so `` is * `"Millennium Falcon"`. Pass it explicitly when the value must not follow * the display text, or when the children carry no text at all. */ value?: string | number; } /** * The key an option contributes to its collection: an explicit `value`, else * the `textValue`, else the text among the children. Shared with the props * context that routes options through a field's tunnel, so both derive the same * identity for one option. */ export declare const getOptionValue: (props: Pick) => string | number | undefined; /** @flr-generate all */ export declare const Option: import('react').FunctionComponent>; export default Option;