import { type Pool, type PoolClient } from '@evershop/postgres-query-builder'; import { type CreateDefinitionInput, type MetaData } from '../../../../lib/metafield/index.js'; /** Create a collection metafield definition (the core service with the owner baked in). */ export declare function addCollectionMetafieldDefinition(input: Omit): Promise; /** * Set the full metafield value set for a collection (the form-save path). * Validates against the collection definitions and writes `meta_data` wholesale. */ export declare function setCollectionMetafields(collectionId: number, values: MetaData, connection?: Pool | PoolClient): Promise; /** * Set a single collection metafield without touching the others (out-of-band * path). Targeted `jsonb_set` merge that creates the * namespace object if missing; a blank value removes the key instead of * storing a JSON null. */ export declare function setCollectionMetafield(collectionId: number, namespace: string, key: string, value: unknown, connection?: Pool | PoolClient): Promise;