import React, { Component } from 'react'; import type { FormUpdaterContextType } from '@douyinfe/semi-foundation/lib/cjs/form/interface'; export interface ArrayFieldProps { initValue?: any[]; field?: string; children?: (props: ArrayFieldChildrenProps) => React.ReactNode; } export interface ArrayFieldChildrenProps { arrayFields: { key: string; field: string; remove: () => void; }[]; add: (index?: number) => void; addWithInitValue: (lineObject: Record, index?: number) => void; } export interface ArrayFieldState { keys: string[]; } declare class ArrayFieldComponent extends Component { static contextType: React.Context; cacheFieldValues: any[]; shouldUseInitValue: boolean; cacheUpdateKey: string | number; context: FormUpdaterContextType; constructor(props: ArrayFieldProps, context: FormUpdaterContextType); componentWillUnmount(): void; componentDidUpdate(): void; add(index?: number): string; addWithInitValue(rowVal: Record | string, index?: number): void; remove(i: number): void; render(): React.JSX.Element; } export default ArrayFieldComponent;