///
import type { JsonViewProps } from '../';
import type { CountInfoExtraProps } from './countInfoExtra';
export interface JsonViewEditorProps extends Omit, 'shortenTextAfterLength'> {
/**
* When a callback function is passed in, edit functionality is enabled. The callback is invoked before edits are completed.
* @returns {boolean} Returning false from onEdit will prevent the change from being made.
*/
onEdit?: (option: {
value: unknown;
oldValue: unknown;
keyName?: string | number;
parentName?: string | number;
namespace?: Array;
type?: 'value' | 'key';
}) => boolean;
/**
* When a callback function is passed in, add functionality is enabled. The callback is invoked before additions are completed.
* @returns {boolean} Returning false from onAdd will prevent the change from being made.
*/
onAdd?: CountInfoExtraProps['onAdd'];
/**
* When a callback function is passed in, delete functionality is enabled. The callback is invoked before deletions are completed.
* @returns Returning false from onDelete will prevent the change from being made.
*/
onDelete?: CountInfoExtraProps['onDelete'];
/** Whether enable edit feature. @default true */
editable?: boolean;
}
declare const JsonViewEditor: import("react").ForwardRefExoticComponent, "ref"> & import("react").RefAttributes>;
export default JsonViewEditor;