import { ActionSelect, Option, OptionGroup, DialogSelectElement } from '../structs/slack'; import { OptionLabel } from '../type-aliases'; export declare const useOption:

(parent: ActionSelect

| DialogSelectElement

| OptionGroup>, propName: P) => (propValue: string, value: string | number) => { updateLabel: (cb: (label: P extends "label" ? string : never) => P extends "label" ? string : never) => void; updateValue: (cb: (value: string | number) => string | number) => void; };