import React from 'react'; export interface EditableDefinition { uuid: string; name: string; description?: string; key: string; type: string; isList?: boolean; required?: boolean; visibleToCustomer?: boolean; validations?: Array<{ type: string; min?: number; max?: number; pattern?: string; values?: Array; }>; subFields?: Array<{ key: string; name: string; type: string; }>; } interface Props { ownerType: string; /** When provided, the form edits this definition (PATCH) instead of creating. */ definition?: EditableDefinition; onSaved: () => void; } /** * In-context create/edit form for a metafield definition. Without `definition` * it creates (`POST /api/metafield-definitions`); with one it edits * (`PATCH /api/metafield-definitions/:uuid`) and the immutable fields (key, type, * allow-multiple) are shown read-only. `namespace` is not shown — it defaults to * `custom`. Mount inside a Dialog (see MetafieldSection). */ export declare function DefinitionEditor({ ownerType, definition, onSaved }: Props): React.JSX.Element; export {};