import { Option } from './option'; declare type Text

= P extends 'text' ? string : never; declare type Label

= P extends 'label' ? string : never; export declare class OptionGroup

= Option

> { text: Text

; label: Label

; options?: O[]; constructor(propName: P, propValue: string); updateText: (cb: (text: Text

) => Text

) => void; updateLabel: (cb: (label: Label

) => Label

) => void; addOption: (option: O) => void; } export {};