UNPKG

568 BTypeScriptView Raw
1import type React from 'react';
2import type { ReactNode } from 'react';
3import type { EditableConfig } from './interface';
4/**
5 * We trade Map as deps which may change with same value but different ref object.
6 * We should make it as hash for deps
7 * */
8export declare function stringify<K extends string | number | symbol, V>(obj: Record<K, V> | Map<K, V>): string;
9export declare function genDataNodeKey(key: React.Key): string;
10export declare function getRemovable(closable?: boolean, closeIcon?: ReactNode, editable?: EditableConfig, disabled?: boolean): boolean;