import { RefObject } from 'react'; import { Field, FieldConfig, IField, FieldInterface, FieldProps, FieldError } from '../common'; import { MicroApp } from 'qiankun'; export interface CustomFieldConfig extends FieldConfig, FieldInterface { type: 'custom'; entry: string; } export default class CustomField extends Field implements IField { identifier: string; entry: string; container: RefObject; customField: MicroApp | null; _validate: (value: string) => Promise; _get: () => Promise; componentDidMount(): void; getSnapshotBeforeUpdate(): string[]; validate: (value: any) => Promise; get: () => Promise; bindValidate: (validate: (value: string) => Promise) => void; bindGet: (get: () => Promise) => Promise; componentDidUpdate(_: FieldProps, __: {}, snapshot: string[]): void; loadCustomField: (entry: string) => void; render: () => JSX.Element; }