import { Field } from './field.js'; import { BaseResource } from '../resources/base_resource.js'; import { RelationQueryBuilder, Type } from '../types.js'; import { ModelResource } from '../resources/model_resource.js'; import { HasManyRelationContract } from '@adonisjs/lucid/types/relations'; import { LucidModel } from '@adonisjs/lucid/types/model'; export default class HasMany extends Field { $type: 'field' | 'panel'; $resource: BaseResource; $relationship: HasManyRelationContract; $searchableWith: (q: RelationQueryBuilder, search: string) => void; constructor(resource: ModelResource, relationship: HasManyRelationContract); formComponent(): string; indexComponent(): string; detailComponent(): string; $validator(): undefined; static make(Resource: Type, relationName: string): HasMany; toJSON(): { relationship: { foreignKey: string; resourceName: string; relationName: string; }; resource: { name: string; label: string; labelPlural: string; icon: string | undefined; slug: string; idKey: string; titleKey: string; actions: { id: string; label: string; severity: string; icon: string; confirmation: any; }[]; routes: { create: string; index: string; }; fields: { type: "field" | "panel"; fieldComponent: string | undefined; indexComponent: string | undefined; detailComponent: string | undefined; attributes: Record; visibility: import("./field.js").FieldVisibility; sortable: boolean; name: string; label: string; initialValue: any; }[]; }; type: "field" | "panel"; fieldComponent: string | undefined; indexComponent: string | undefined; detailComponent: string | undefined; attributes: Record; visibility: import("./field.js").FieldVisibility; sortable: boolean; name: string; label: string; initialValue: any; }; }