import type { FieldDescriptor, MetafieldDefinition, MetafieldType, Validation } from './types.js'; export interface CreateDefinitionInput { ownerType: string; namespace?: string; key: string; name: string; description?: string; type: MetafieldType; isList?: boolean; required?: boolean; translatable?: boolean; visibleToCustomer?: boolean; validations?: Validation[]; appearance?: Record; subFields?: FieldDescriptor[]; position?: number; /** Theme attribution (drawer lazy-create / programmatic seeding). The * `.given()` write drops the column silently on unmigrated DBs. */ provisionedByTheme?: string; } export type UpdateDefinitionInput = Partial; /** Map a DB row (snake_case columns) to the API-facing definition shape. */ export declare function rowToDefinition(row: Record): MetafieldDefinition; export declare function listMetafieldDefinitions(ownerType: string): Promise; export declare function getMetafieldDefinition(uuid: string): Promise; export declare function createMetafieldDefinition(input: CreateDefinitionInput): Promise; export declare function updateMetafieldDefinition(uuid: string, patch: UpdateDefinitionInput): Promise; export declare function deleteMetafieldDefinition(uuid: string, opts?: { force?: boolean; }): Promise;