import { type Pool, type PoolClient } from '@evershop/postgres-query-builder'; import { type CreateDefinitionInput, type MetaData } from '../../../lib/metafield/index.js'; /** Create a shop (store-wide) metafield definition. */ export declare function addShopMetafieldDefinition(input: Omit): Promise; /** Read the shop's metafield values from the `metafield_shop` singleton. */ export declare function getShopMetaData(connection?: Pool | PoolClient): Promise; /** * Set the full shop metafield value set. Validates against the shop definitions * and writes the `metafield_shop` singleton (upsert keeps it robust even if the * seed row is missing). */ export declare function setShopMetafields(values: MetaData, connection?: Pool | PoolClient): Promise; /** * Set a single shop metafield without touching the others (out-of-band path). * Targeted `jsonb_set` merge on the singleton; a blank value removes the * key instead of storing a JSON null. */ export declare function setShopMetafield(namespace: string, key: string, value: unknown, connection?: Pool | PoolClient): Promise;