import React from 'react'; import { EditorInputBase } from '@lingxiteam/editor-types'; import { FormInstance } from 'antd'; export interface GetServiceType { isMobile?: boolean; getEditorApi: EditorInputBase['getEditorApi']; value?: any; onSelectChange?: (data: any) => void; children?: React.ReactChild; serviceTabs?: Array<{ key: string; description: string; fileUpload?: boolean; }>; } interface GetServiceContextType { form: FormInstance; isMobile?: boolean; getEditorApi: EditorInputBase['getEditorApi']; apiRequestData: any; setApiRequestData: (apiRequestData: any) => void; activeKeys: string | string[]; setActiveKeys: (activeKey: string | string[]) => void; serviceRef: React.MutableRefObject; onChooseSelect: (data: any) => void; onChangeParams: (val: any) => void; loading: boolean; setLoading: (loading: boolean) => void; selectedService: any; requestAttrs: any[]; responseAttrs: any[]; serviceData: any[]; setServiceData: (serviceData: any[]) => void; initAllServiceData: () => void; searchValue: string; setSearchValue: (val: string) => void; getApiRequestOptsByService: (data: any) => any; getAppServiceParam: (data: any) => Promise; getObjectServiceParam: (data: any) => Promise; getRhinServiceParam: (data: any) => Promise; getStdService: (data: any) => Promise; changeSelectedBySource: (source: string, data: any) => Promise; findSelectedService: (source: string, data: any, options?: any, cServiceData?: any[]) => any[]; analyticServiceData: (data: any, source: string, options?: any) => any[]; getServiceDetails: (data: any) => void; onSelectChange?: GetServiceType['onSelectChange']; } declare const GetServiceProvider: React.ForwardRefExoticComponent>; declare const useGetServiceContext: () => GetServiceContextType; export { GetServiceProvider, useGetServiceContext };