import React from 'react';
import { RootState } from 'typesafe-actions';
import { FuncFetchParams, FuncEntity } from '@/types/index';
declare const mapStateToProps: (state: RootState) => {
    list: {
        name?: undefined;
        type?: undefined;
        applicationId?: undefined;
        content: {
            id?: undefined;
            schemas: {
                id?: undefined;
                name: never;
                props: {
                    async: never;
                    code: never;
                };
                type?: undefined;
            }[];
            relation?: {
                [x: string]: {
                    content?: any;
                    id?: undefined;
                    name?: undefined;
                    type: never;
                };
            } | undefined;
        };
        contentId: never;
        deleted?: undefined;
        folderId?: undefined;
        folderName?: undefined;
        intro?: undefined;
        online?: undefined;
        relations?: {
            templates?: {
                id: never;
                dslVersion: never;
                version: never;
                schemas: {
                    id: never;
                    label: never;
                    name: never;
                    props: {
                        [x: string]: any;
                    };
                    version: never;
                    type: never;
                    children?: any[] | undefined;
                    extension: {
                        extendId?: undefined;
                        sort?: undefined;
                        parentId?: undefined;
                        mockId?: undefined;
                    };
                    directive?: {
                        [x: string]: never[];
                        tpl?: undefined;
                        if?: never[] | undefined;
                    } | undefined;
                    childIds?: never[] | undefined;
                    __parsedProps?: {
                        [x: string]: any;
                    } | undefined;
                }[];
                relation: {
                    [x: string]: {
                        content?: any;
                        id?: undefined;
                        name?: undefined;
                        type: never;
                    };
                };
                extension: {
                    extendId?: undefined;
                    sort?: undefined;
                    parentId?: undefined;
                    mockId?: undefined;
                };
                mock?: {
                    enable: never;
                    id?: undefined;
                    relation?: {
                        [x: string]: {
                            content?: any;
                            id?: undefined;
                            name?: undefined;
                            type: never;
                        };
                    } | undefined;
                    schemas: {
                        id: never;
                        label: never;
                        name: never;
                        props: {
                            [x: string]: any;
                        };
                        version: never;
                        type: never;
                        children?: any[] | undefined;
                        extension: {
                            extendId?: undefined;
                            sort?: undefined;
                            parentId?: undefined;
                            mockId?: undefined;
                        };
                        directive?: {
                            [x: string]: never[];
                            tpl?: undefined;
                            if?: never[] | undefined;
                        } | undefined;
                        childIds?: never[] | undefined;
                        __parsedProps?: {
                            [x: string]: any;
                        } | undefined;
                    }[];
                    version?: undefined;
                } | undefined;
            }[] | undefined;
            variables?: {
                id?: undefined;
                name?: undefined;
                version?: undefined;
                relation?: {
                    [x: string]: {
                        content?: any;
                        id?: undefined;
                        name?: undefined;
                        type: never;
                    };
                } | undefined;
                schemas?: {
                    id?: undefined;
                    name: never;
                    props: {
                        [x: string]: any;
                    };
                    type?: undefined;
                }[] | undefined;
            }[] | undefined;
            conditions?: {
                id?: undefined;
                name?: undefined;
                version?: undefined;
                relation?: {
                    [x: string]: {
                        content?: any;
                        id?: undefined;
                        name?: undefined;
                        type: never;
                    };
                } | undefined;
                schemas?: {
                    id?: undefined;
                    name: never;
                    props: {
                        [x: string]: any;
                    };
                    type?: undefined;
                }[] | undefined;
            }[] | undefined;
            functions?: {
                id?: undefined;
                name?: undefined;
                version?: undefined;
                relation?: {
                    [x: string]: {
                        content?: any;
                        id?: undefined;
                        name?: undefined;
                        type: never;
                    };
                } | undefined;
                schemas?: {
                    id?: undefined;
                    name: never;
                    props: {
                        [x: string]: any;
                    };
                    type?: undefined;
                }[] | undefined;
            }[] | undefined;
        } | undefined;
        relation?: {
            [x: string]: {
                content?: any;
                id?: undefined;
                name?: undefined;
                type: never;
            };
        } | undefined;
        schemas?: {
            id?: undefined;
            name: never;
            props: {
                [x: string]: any;
            };
            type?: undefined;
        }[] | undefined;
        suffix?: undefined;
        tags?: {
            [x: string]: never;
        }[] | undefined;
        version?: undefined;
        versionNumber?: undefined;
        id?: undefined;
        createTime?: undefined;
        updateTime?: undefined;
        creator?: {
            id: never;
            account: never;
            nickName?: undefined;
        } | undefined;
    }[];
    loading: never;
    pageInfo: {
        page: never;
        size: never;
        total: never;
    };
};
declare const mapDispatchToProps: {
    clearAll: () => import("typesafe-actions").PayloadAction<"APPLICATION_FILE_FUNCTIONS__CLEAR_ALL", {}>;
    fetchList: (params: FuncFetchParams) => import("typesafe-actions").PayloadAction<"APPLICATION_FILE_FUNCTIONS__FETCH_LIST", {
        params: FuncFetchParams;
    }>;
};
interface IProps {
    visible: boolean;
    funcId?: string;
    applicationId: string;
    folderId?: string;
    onChange: (selectedFunction: FuncEntity | undefined) => void;
    onClose: () => void;
}
declare type FunctionSelectType = ReturnType<typeof mapStateToProps> & typeof mapDispatchToProps & IProps;
declare const _default: import("react-redux").ConnectedComponent<React.FC<FunctionSelectType>, import("react-redux").Omit<{
    list: {
        name?: undefined;
        type?: undefined;
        applicationId?: undefined;
        content: {
            id?: undefined;
            schemas: {
                id?: undefined;
                name: never;
                props: {
                    async: never;
                    code: never;
                };
                type?: undefined;
            }[];
            relation?: {
                [x: string]: {
                    content?: any;
                    id?: undefined;
                    name?: undefined;
                    type: never;
                };
            } | undefined;
        };
        contentId: never;
        deleted?: undefined;
        folderId?: undefined;
        folderName?: undefined;
        intro?: undefined;
        online?: undefined;
        relations?: {
            templates?: {
                id: never;
                dslVersion: never;
                version: never;
                schemas: {
                    id: never;
                    label: never;
                    name: never;
                    props: {
                        [x: string]: any;
                    };
                    version: never;
                    type: never;
                    children?: any[] | undefined;
                    extension: {
                        extendId?: undefined;
                        sort?: undefined;
                        parentId?: undefined;
                        mockId?: undefined;
                    };
                    directive?: {
                        [x: string]: never[];
                        tpl?: undefined;
                        if?: never[] | undefined;
                    } | undefined;
                    childIds?: never[] | undefined;
                    __parsedProps?: {
                        [x: string]: any;
                    } | undefined;
                }[];
                relation: {
                    [x: string]: {
                        content?: any;
                        id?: undefined;
                        name?: undefined;
                        type: never;
                    };
                };
                extension: {
                    extendId?: undefined;
                    sort?: undefined;
                    parentId?: undefined;
                    mockId?: undefined;
                };
                mock?: {
                    enable: never;
                    id?: undefined;
                    relation?: {
                        [x: string]: {
                            content?: any;
                            id?: undefined;
                            name?: undefined;
                            type: never;
                        };
                    } | undefined;
                    schemas: {
                        id: never;
                        label: never;
                        name: never;
                        props: {
                            [x: string]: any;
                        };
                        version: never;
                        type: never;
                        children?: any[] | undefined;
                        extension: {
                            extendId?: undefined;
                            sort?: undefined;
                            parentId?: undefined;
                            mockId?: undefined;
                        };
                        directive?: {
                            [x: string]: never[];
                            tpl?: undefined;
                            if?: never[] | undefined;
                        } | undefined;
                        childIds?: never[] | undefined;
                        __parsedProps?: {
                            [x: string]: any;
                        } | undefined;
                    }[];
                    version?: undefined;
                } | undefined;
            }[] | undefined;
            variables?: {
                id?: undefined;
                name?: undefined;
                version?: undefined;
                relation?: {
                    [x: string]: {
                        content?: any;
                        id?: undefined;
                        name?: undefined;
                        type: never;
                    };
                } | undefined;
                schemas?: {
                    id?: undefined;
                    name: never;
                    props: {
                        [x: string]: any;
                    };
                    type?: undefined;
                }[] | undefined;
            }[] | undefined;
            conditions?: {
                id?: undefined;
                name?: undefined;
                version?: undefined;
                relation?: {
                    [x: string]: {
                        content?: any;
                        id?: undefined;
                        name?: undefined;
                        type: never;
                    };
                } | undefined;
                schemas?: {
                    id?: undefined;
                    name: never;
                    props: {
                        [x: string]: any;
                    };
                    type?: undefined;
                }[] | undefined;
            }[] | undefined;
            functions?: {
                id?: undefined;
                name?: undefined;
                version?: undefined;
                relation?: {
                    [x: string]: {
                        content?: any;
                        id?: undefined;
                        name?: undefined;
                        type: never;
                    };
                } | undefined;
                schemas?: {
                    id?: undefined;
                    name: never;
                    props: {
                        [x: string]: any;
                    };
                    type?: undefined;
                }[] | undefined;
            }[] | undefined;
        } | undefined;
        relation?: {
            [x: string]: {
                content?: any;
                id?: undefined;
                name?: undefined;
                type: never;
            };
        } | undefined;
        schemas?: {
            id?: undefined;
            name: never;
            props: {
                [x: string]: any;
            };
            type?: undefined;
        }[] | undefined;
        suffix?: undefined;
        tags?: {
            [x: string]: never;
        }[] | undefined;
        version?: undefined;
        versionNumber?: undefined;
        id?: undefined;
        createTime?: undefined;
        updateTime?: undefined;
        creator?: {
            id: never;
            account: never;
            nickName?: undefined;
        } | undefined;
    }[];
    loading: never;
    pageInfo: {
        page: never;
        size: never;
        total: never;
    };
} & {
    clearAll: () => import("typesafe-actions").PayloadAction<"APPLICATION_FILE_FUNCTIONS__CLEAR_ALL", {}>;
    fetchList: (params: FuncFetchParams) => import("typesafe-actions").PayloadAction<"APPLICATION_FILE_FUNCTIONS__FETCH_LIST", {
        params: FuncFetchParams;
    }>;
} & IProps, "list" | "loading" | "clearAll" | "fetchList" | "pageInfo">>;
export default _default;
