import { Component, ComponentOptions } from 'vue'; import { ExtensionOptionsContext } from './extensions'; import { Field, LocalType, Type } from './fields'; import { DeepPartial } from './misc'; export type DisplayFieldsFunction = (options: any, context: { collection: string; field: string; type: string; }) => string[]; export interface DisplayConfig { id: string; name: string; icon: string; description?: string; component: Component; handler?: (value: any, options: Record, ctx: { interfaceOptions?: Record; field?: Field; collection?: string; }) => string | null; options: DeepPartial[] | { standard: DeepPartial[]; advanced: DeepPartial[]; } | ((ctx: ExtensionOptionsContext) => DeepPartial[] | { standard: DeepPartial[]; advanced: DeepPartial[]; }) | ComponentOptions | null; types: readonly Type[]; localTypes?: readonly LocalType[]; fields?: string[] | DisplayFieldsFunction; } //# sourceMappingURL=displays.d.ts.map