import { type Pool, type PoolClient } from '@evershop/postgres-query-builder'; import { type CreateDefinitionInput, type MetaData } from '../../../lib/metafield/index.js'; /** Create an order metafield definition (the core service with the owner baked in). */ export declare function addOrderMetafieldDefinition(input: Omit): Promise; /** * Set the full metafield value set for an order. Validates against the order * definitions and writes `meta_data` wholesale. ("order" is a reserved word, so * the query builder quotes the identifier.) */ export declare function setOrderMetafields(orderId: number, values: MetaData, connection?: Pool | PoolClient): Promise; /** * Set a single order 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 setOrderMetafield(orderId: number, namespace: string, key: string, value: unknown, connection?: Pool | PoolClient): Promise;