import type { CustomTypeModelLinkSelectType } from "./link" import type { CustomTypeModelFieldType } from "./types" /** @internal */ export type CustomTypeModelFetchGroupLevel2 = { id: string fields: ReadonlyArray } /** @internal */ export type CustomTypeModelFetchCustomTypeLevel2 = { id: string fields: ReadonlyArray } /** @internal */ export type CustomTypeModelFetchGroupLevel1 = { id: string fields: ReadonlyArray } /** @internal */ export type CustomTypeModelFetchContentRelationshipLevel1 = { id: string customtypes: ReadonlyArray } /** @internal */ export type CustomTypeModelFetchCustomTypeLevel1 = { id: string fields: ReadonlyArray< string | CustomTypeModelFetchGroupLevel1 | CustomTypeModelFetchContentRelationshipLevel1 > } /** * A content relationship custom type field. * * More details: {@link https://prismic.io/docs/content-relationship} */ export interface CustomTypeModelContentRelationshipField< CustomTypes extends string | CustomTypeModelFetchCustomTypeLevel1 = | string | CustomTypeModelFetchCustomTypeLevel1, Tags extends string = string, > { type: typeof CustomTypeModelFieldType.Link fieldset?: string | null config?: { label?: string | null placeholder?: string select: typeof CustomTypeModelLinkSelectType.Document customtypes?: readonly CustomTypes[] tags?: readonly Tags[] } }