/// <reference types="hoist-non-react-statics" />
/**
 * @file 数据源/实体列表
 * @description
 */
import React from 'react';
import { ThemeProps } from 'amis';
export interface DataSourceItem {
    value: string;
    label: string;
    [propKey: string]: any;
}
export interface DataSourceOption {
    value: string;
    label: string;
    children: DataSourceItem[];
    [propKey: string]: any | DataSourceItem[];
}
export interface DataSourceListProps extends ThemeProps {
    value: any;
    accordion?: boolean;
    multiple?: boolean;
    options?: DataSourceOption[];
    data?: any;
    childrenField?: string;
    samePredicate?: (a: any, b: any) => boolean;
    onChange: (value: DataSourceItem | DataSourceItem[]) => void;
    /** 自动将已激活的选项滚动到视窗中心 */
    autoFocus?: boolean;
}
declare const _default: {
    new (props: Omit<DataSourceListProps, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOuterProps): {
        ref: any;
        childRef(ref: any): void;
        getWrappedInstance(): any;
        render(): React.JSX.Element;
        context: unknown;
        setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<DataSourceListProps, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOuterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
        forceUpdate(callback?: (() => void) | undefined): void;
        readonly props: Readonly<Omit<DataSourceListProps, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOuterProps>;
        state: Readonly<{}>;
        refs: {
            [key: string]: React.ReactInstance;
        };
        componentDidMount?(): void;
        shouldComponentUpdate?(nextProps: Readonly<Omit<DataSourceListProps, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
        componentWillUnmount?(): void;
        componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
        getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<DataSourceListProps, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>): any;
        componentDidUpdate?(prevProps: Readonly<Omit<DataSourceListProps, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>, snapshot?: any): void;
        componentWillMount?(): void;
        UNSAFE_componentWillMount?(): void;
        componentWillReceiveProps?(nextProps: Readonly<Omit<DataSourceListProps, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
        UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<DataSourceListProps, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
        componentWillUpdate?(nextProps: Readonly<Omit<DataSourceListProps, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
        UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<DataSourceListProps, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
    };
    displayName: string;
    contextType: React.Context<string>;
    ComposedComponent: React.ComponentType<React.FC<DataSourceListProps>>;
} & import("hoist-non-react-statics").NonReactStatics<React.FC<DataSourceListProps>, {}> & {
    ComposedComponent: React.FC<DataSourceListProps>;
};
export default _default;
