interface SchemaMeta { type?: string; required?: boolean; title?: string; format?: string; items?: any; enum?: any[] | { anyOf?: any[]; oneOf?: any[]; }; description?: string; [key: string]: any; } export interface SchemaProperty { type?: string; properties?: Record; items?: SchemaProperty; required?: string[]; title?: string; description?: string; format?: string; enum?: any; [key: string]: any; } export declare class SchemaBuilder { private schema; constructor(formName: string); private mapEnumData; updateSchema({ path, meta }: { path: string; meta: SchemaMeta; }): void; /** * 根据组件信息构建 schema meta */ buildSchemaFromComponent(params: { componentElement: any; rules?: any[]; label?: string; finalFieldId?: string; separator?: string; }): SchemaMeta; parsePath(path?: string): string[] | null; mergeSchema(currentSchema: SchemaProperty, pathSegments: string[], meta: SchemaMeta): void; handleArraySegment(currentSchema: SchemaProperty, remainingSegments: string[], meta: SchemaMeta): void; handleObjectProperty(currentSchema: SchemaProperty, propertyName: string, remainingSegments: string[], meta: SchemaMeta): void; handleRequired(parentSchema: SchemaProperty, propertyName: string, isRequired: boolean): void; getFormSchema(): SchemaProperty; } export {}; //# sourceMappingURL=form-schema-builder.d.ts.map