export function checkInstanceFlowVersion(instance: any): Promise<boolean>;
export function getFlowFormSchema(instance: any, box: any): Promise<{
    type: string;
    name: string;
    className: string;
    bodyClassName: string;
    headerClassName: string;
    title: {
        type: string;
        label: string;
        objectApiName: string;
        recordId: any;
        id: string;
        showRecordTitle: boolean;
        className: string;
    };
    css: {
        ".steedos-amis-instance-view-body": {
            height: string;
        };
        ".instance-approve-history .antd-Table-table thead": {
            display: string;
        };
        ".instance-approve-history .antd-Table-heading": {
            "font-size": string;
            "font-weight": string;
            "padding-left": string;
        };
        ".antd-List-heading": {
            "font-size": string;
            "font-weight": string;
        };
        ".steedos-amis-instance-view.steedos-instance-style-table .antd-Page-body .steedos-amis-instance-view-content": {
            "max-width": string;
        };
        ".steedos-amis-instance-view .approval-drawer.antd-Drawer .antd-Drawer-content": {
            "box-shadow": string;
            "border-top": string;
        };
        ".antd-List-placeholder": {
            display: string;
        };
        ".steedos-amis-instance-view .antd-Table-fixedTop": {
            top: string;
        };
        ".steedos-amis-instance-view .antd-Table-fixedTop:after": {
            "box-shadow": string;
        };
        ".antd-List-items": {
            border: string;
        };
        ".antd-ListItem": {
            "border-top": string;
            background: string;
        };
    };
    body: {
        type: string;
        body: ({
            type: string;
            className: string;
            headerClassName: string;
            bodyClassName: string;
            title: ({
                type: string;
                tpl: string;
                title?: undefined;
                body?: undefined;
                id?: undefined;
                wrapWithPanel?: undefined;
            } | {
                type: string;
                title: string;
                body: {
                    type: string;
                    labelClassName: string;
                    className: string;
                    label: string;
                    mode: string;
                    name: string;
                    id: string;
                    btnLabel: string;
                    btnClassName: string;
                    multiple: boolean;
                    maxLength: number;
                    submitType: string;
                    uploadType: string;
                    proxy: boolean;
                    drag: boolean;
                    autoUpload: boolean;
                    useChunk: boolean;
                    joinValues: boolean;
                    extractValue: boolean;
                    valueField: string;
                    receiver: {
                        url: string;
                        headers: {
                            Authorization: string;
                        };
                        method: string;
                        messages: {};
                        dataType: string;
                        requestAdaptor: string;
                    };
                    onEvent: {
                        success: {
                            weight: number;
                            actions: ({
                                componentId: string;
                                args: {
                                    msgType?: undefined;
                                    position?: undefined;
                                    closeButton?: undefined;
                                    showIcon?: undefined;
                                    msg?: undefined;
                                };
                                actionType: string;
                            } | {
                                componentId: string;
                                args: {
                                    msgType: string;
                                    position: string;
                                    closeButton: boolean;
                                    showIcon: boolean;
                                    msg: string;
                                };
                                actionType: string;
                            })[];
                        };
                    };
                }[];
                id: string;
                wrapWithPanel: boolean;
                tpl?: undefined;
            })[];
            body: {
                type: string;
                id: string;
                api: {
                    method: string;
                    url: string;
                    dataType: string;
                    headers: {
                        Authorization: string;
                    };
                    requestAdaptor: string;
                };
                body: {
                    type: string;
                    source: string;
                    title: boolean;
                    listItem: {
                        body: {
                            type: string;
                            inline: boolean;
                            tpl: string;
                        }[];
                        actions: any[];
                        id: string;
                    };
                    id: string;
                }[];
            }[];
        } | {
            type: string;
            tpl: string;
        }[] | {
            type: string;
            name: string;
            source: string;
            title: string;
            listItem: {
                body: {
                    type: string;
                    inline: boolean;
                    tpl: string;
                }[];
                actions: any[];
                id: string;
            };
            id: string;
        } | {
            type: string;
            headerClassName: string;
            title: string;
            source: string;
            className: string;
            columnsTogglable: boolean;
            footable: {
                expand: string;
            };
            columns: ({
                name: string;
                label: string;
                type?: undefined;
                tpl?: undefined;
                classNameExpr?: undefined;
            } | {
                name: string;
                label: string;
                type: string;
                tpl: string;
                classNameExpr?: undefined;
            } | {
                name: string;
                label: string;
                classNameExpr: string;
                type?: undefined;
                tpl?: undefined;
            })[];
        } | {
            type: string;
            id: string;
            api: {
                url: string;
                method: string;
                requestAdaptor: string;
                adaptor: string;
            };
            body: {
                type: string;
                source: string;
                className: string;
                label: boolean;
                needConfirm: boolean;
                bordered: boolean;
                title: string;
                quickSaveItemApi: {
                    url: string;
                    method: string;
                    requestAdaptor: string;
                    adaptor: string;
                };
                columns: ({
                    label: string;
                    name: string;
                    width: number;
                    quickEdit: {
                        type: string;
                        mode: string;
                        id: string;
                        name: string;
                        saveImmediately: boolean;
                        value: boolean;
                        disabledOn: string;
                    };
                } | {
                    label: string;
                    name: string;
                    quickEdit: boolean;
                    width?: undefined;
                } | {
                    label: string;
                    name: string;
                    quickEdit: {
                        type: string;
                        mode: string;
                        id: string;
                        name: string;
                        saveImmediately: boolean;
                        value?: undefined;
                        disabledOn?: undefined;
                    };
                    width?: undefined;
                })[];
            }[];
        } | {
            type: string;
            id: string;
            tpl: string;
        } | {
            type: string;
            label: string;
            onEvent: {
                click: {
                    actions: ({
                        componentId: string;
                        args: {
                            time?: undefined;
                        };
                        actionType: string;
                        drawer: {
                            type: string;
                            overlay: boolean;
                            resizable: boolean;
                            closeOnEsc: boolean;
                            closeOnOutside: boolean;
                            size: string;
                            title: string;
                            className: string;
                            headerClassName: string;
                            bodyClassName: string;
                            footerClassName: string;
                            drawerContainer: () => Element;
                            body: {
                                type: string;
                                initApi: {
                                    method: string;
                                    url: string;
                                };
                                debug: boolean;
                                id: string;
                                resetAfterSubmit: boolean;
                                clearPersistDataAfterSubmit: boolean;
                                persistData: string;
                                body: ({
                                    type: string;
                                    label: boolean;
                                    name: string;
                                    value: string;
                                    options: {
                                        label: string;
                                        value: string;
                                    }[];
                                    id: string;
                                    required: boolean;
                                    onEvent: {
                                        change: {
                                            weight: number;
                                            actions: ({
                                                componentId: string;
                                                args: {
                                                    value: {
                                                        new_judge: string;
                                                        next_step: any;
                                                    };
                                                    judge?: undefined;
                                                };
                                                actionType: string;
                                                eventName?: undefined;
                                            } | {
                                                args: {
                                                    judge: string;
                                                    value?: undefined;
                                                };
                                                actionType: string;
                                                eventName: string;
                                                componentId?: undefined;
                                            })[];
                                        };
                                    };
                                } | {
                                    type: string;
                                    columns: ({
                                        body: {
                                            type: string;
                                            tpl: string;
                                            inline: boolean;
                                            wrapperComponent: string;
                                            id: string;
                                        }[];
                                        id: string;
                                        md: string;
                                        valign: string;
                                    } | {
                                        body: {
                                            type: string;
                                            label: string;
                                            name: string;
                                            id: string;
                                            multiple: boolean;
                                            required: boolean;
                                            autoFill: {
                                                new_next_step: string;
                                            };
                                            source: {
                                                url: string;
                                                headers: {
                                                    Authorization: string;
                                                };
                                                method: string;
                                                messages: {};
                                                requestAdaptor: string;
                                                adaptor: string;
                                                data: {
                                                    context: string;
                                                    $scopeId: string;
                                                    judge: string;
                                                };
                                            };
                                            onEvent: {
                                                change: {
                                                    weight: number;
                                                    actions: any[];
                                                };
                                            };
                                        }[];
                                        id: string;
                                        md?: undefined;
                                        valign?: undefined;
                                    })[];
                                    id: string;
                                    className: string;
                                    subFormMode: string;
                                } | {
                                    type: string;
                                    columns: ({
                                        body: {
                                            type: string;
                                            tpl: string;
                                            inline: boolean;
                                            wrapperComponent: string;
                                            id: string;
                                        }[];
                                        id: string;
                                        md: string;
                                        valign: string;
                                    } | {
                                        body: ({
                                            type: string;
                                            label: string;
                                            name: string;
                                            id: string;
                                            hiddenOn: string;
                                            required: boolean;
                                            onEvent: {
                                                change: {
                                                    weight: number;
                                                    actions: any[];
                                                };
                                            };
                                            multiple?: undefined;
                                            source?: undefined;
                                            labelField?: undefined;
                                            valueField?: undefined;
                                            value?: undefined;
                                            joinValues?: undefined;
                                            extractValue?: undefined;
                                        } | {
                                            type: string;
                                            label: string;
                                            name: string;
                                            id: string;
                                            hiddenOn: string;
                                            required: boolean;
                                            multiple: boolean;
                                            onEvent: {
                                                change: {
                                                    weight: number;
                                                    actions: any[];
                                                };
                                            };
                                            source?: undefined;
                                            labelField?: undefined;
                                            valueField?: undefined;
                                            value?: undefined;
                                            joinValues?: undefined;
                                            extractValue?: undefined;
                                        } | {
                                            type: string;
                                            label: string;
                                            name: string;
                                            id: string;
                                            required: boolean;
                                            hiddenOn: string;
                                            multiple: boolean;
                                            source: {
                                                url: string;
                                                method: string;
                                                sendOn: string;
                                                headers: {
                                                    Authorization: string;
                                                };
                                                messages: {};
                                                requestAdaptor: string;
                                                adaptor: string;
                                                data: {
                                                    "&": string;
                                                    $scopeId: string;
                                                    context: string;
                                                    next_step: string;
                                                };
                                            };
                                            labelField: string;
                                            valueField: string;
                                            value: string;
                                            joinValues: boolean;
                                            extractValue: boolean;
                                            onEvent: {
                                                change: {
                                                    weight: number;
                                                    actions: any[];
                                                };
                                            };
                                        })[];
                                        id: string;
                                        md?: undefined;
                                        valign?: undefined;
                                    })[];
                                    id: string;
                                    className: string;
                                    subFormMode: string;
                                    hiddenOn: string;
                                } | {
                                    type: string;
                                    name: string;
                                    label?: undefined;
                                    id?: undefined;
                                    minRows?: undefined;
                                    maxRows?: undefined;
                                    placeholder?: undefined;
                                    requiredOn?: undefined;
                                    value?: undefined;
                                    onEvent?: undefined;
                                } | {
                                    type: string;
                                    label: boolean;
                                    name: string;
                                    id: string;
                                    minRows: number;
                                    maxRows: number;
                                    placeholder: string;
                                    requiredOn: string;
                                    value: any;
                                    onEvent: {
                                        blur: {
                                            actions: {
                                                componentId: string;
                                                actionType: string;
                                                args: {
                                                    value: {
                                                        instance_my_approve_description: string;
                                                    };
                                                };
                                            }[];
                                        };
                                    };
                                })[];
                                onEvent: {
                                    approve_judge_change: {
                                        actions: {
                                            actionType: string;
                                            componentId: string;
                                            args: {};
                                        }[];
                                    };
                                    inited: {
                                        actions: any[];
                                    };
                                };
                            }[];
                            id: string;
                            position: string;
                            onEvent: {
                                cancel: {
                                    actions: {
                                        actionType: string;
                                        script: (context: any, doAction: any, event: any) => void;
                                    }[];
                                };
                            };
                            actions: ({
                                type: string;
                                label: string;
                                onEvent: {
                                    click: {
                                        actions: any[];
                                    };
                                };
                                id: string;
                                level: string;
                            } | {
                                type: string;
                                label: string;
                                onEvent: {
                                    click: {
                                        actions: {
                                            componentId: string;
                                            args: {};
                                            actionType: string;
                                        }[];
                                    };
                                };
                                id: string;
                                level?: undefined;
                            })[];
                        };
                        script?: undefined;
                    } | {
                        actionType: string;
                        args: {
                            time: number;
                        };
                        componentId?: undefined;
                        drawer?: undefined;
                        script?: undefined;
                    } | {
                        actionType: string;
                        script: (context: any, doAction: any, event: any) => void;
                        componentId?: undefined;
                        args?: undefined;
                        drawer?: undefined;
                    })[];
                };
            };
            id: string;
            level: string;
            className: {
                "approve-button w-14 h-14 rounded-full fixed bottom-4 right-4 shadow-lg text-white text-base text-center font-semibold bg-blue-500 p-0": boolean;
                hidden: boolean;
            };
        } | {
            type: string;
            debug: boolean;
            wrapWithPanel: boolean;
            resetAfterSubmit: boolean;
            body: ({
                type: string;
                className: string;
                trs: {
                    background: string;
                    tds: ({
                        background: string;
                        colspan: number;
                        align: string;
                        className: string;
                        width: string;
                        body: {
                            label: any;
                            name: any;
                            mode: string;
                            className: string;
                        }[];
                        style: {
                            marginTop: string;
                            paddingTop: string;
                            paddingRight: string;
                            paddingBottom: string;
                            paddingLeft: string;
                            marginRight: string;
                            marginBottom: string;
                            marginLeft: string;
                            borderLeftColor: string;
                            borderTopColor: string;
                            borderRightColor: string;
                            borderBottomColor: string;
                        };
                    } | {
                        className: string;
                        align: string;
                        width: string;
                        colspan: string | number;
                        background: string;
                        body: {
                            type: string;
                            tpl: string;
                            className: string | {
                                'steedos-field-required': string;
                            };
                        }[];
                        style: {
                            borderLeftColor: string;
                            borderTopColor: string;
                            borderRightColor: string;
                            borderBottomColor: string;
                        };
                    })[];
                }[];
                id: string;
            } | {
                type: string;
                className: string;
                mode: any;
                steps: {
                    title: any;
                    body: {
                        label: any;
                        name: any;
                        mode: string;
                        className: string;
                    }[];
                }[];
                actionFinishLabel: string;
                id: string;
                target: string;
                onEvent: {
                    change: {
                        actions: {
                            actionType: string;
                            componentId: string;
                            args: {
                                value: string;
                            };
                        }[];
                    };
                    finished: {
                        actions: {
                            actionType: string;
                            componentId: string;
                        }[];
                    };
                };
            } | {
                type: string;
                className: string;
                trs: {
                    background: string;
                    tds: {
                        className: string;
                        background: string;
                        align: string;
                        width: string;
                        colspan: string;
                        body: any[];
                        id: string;
                        style: {
                            padding: string;
                        };
                    }[];
                }[];
                id: string;
                style: {
                    borderLeftStyle: string;
                    borderTopStyle: string;
                    borderRightStyle: string;
                    borderBottomStyle: string;
                };
            } | {
                type: string;
                id: string;
                tpl: string;
                inline: boolean;
                wrapperComponent: string;
                style: {
                    fontFamily: string;
                    fontSize: number;
                    textAlign: string;
                };
            })[];
            id: string;
            onEvent: {
                change: {
                    weight: number;
                    actions: any[];
                };
            };
        })[];
        size: string;
        className: string;
    }[];
    id: string;
    messages: {};
    pullRefresh: {};
    regions: string[];
    onEvent: {
        "@data.@instanceDetail.changed": {
            actions: {
                componentId: string;
                actionType: string;
            }[];
        };
        inited: {
            actions: any[];
        };
    };
    initApi: {
        url: string;
        method: string;
        headers: {
            Authorization: string;
        };
        messages: {};
        requestAdaptor: string;
        adaptor: string;
        data: {
            judge: string;
        };
    };
    initFetch: boolean;
}>;
