import * as React from 'react'; import { BGridCellClipboardParseParams, BGridCellClipboardTextParams, BGridPluginEditorConfig } from '../types'; export interface BGridSelectEditorOption { value: Value; label: React.ReactNode; disabled?: boolean; } export interface BGridSelectEditorPluginOptions { id: string; options: BGridSelectEditorOption[]; ariaLabel?: string; placeholder?: string; openOnMount?: boolean; /** * Whether to allow pasting values that do not match any option value or label. * Defaults to false (unmatched values throw an error and report parseValueFailed). */ allowCustomValue?: boolean; /** * Clipboard text mode when copying cells using this editor. * 'label' (default): copies the option's label if it is a string or number. * 'value': copies the option's raw value. */ copyMode?: 'label' | 'value'; /** * Whether to allow clearing cell values by pasting empty or whitespace-only text. * Defaults to false (unmatched empty text throws parseValueFailed). * When true, pastes `emptyValue` into the cell. */ allowEmpty?: boolean; /** * Value written when an empty text is pasted and `allowEmpty` is true. * Defaults to undefined. */ emptyValue?: Value | null; /** * Whether to allow pasting options that have `disabled: true`. * Defaults to false (pasting a disabled option throws an error). */ allowDisabledOptions?: boolean; /** * Custom clipboard parser for this editor. * Throw an error to reject the paste for this cell. */ parseClipboardText?: (text: string, params: BGridCellClipboardParseParams) => Value | unknown; /** * Custom clipboard text getter for this editor. */ getClipboardText?: (params: BGridCellClipboardTextParams) => any; } export declare function createSelectEditorPlugin(options: BGridSelectEditorPluginOptions): BGridPluginEditorConfig;