import type { ImportEntity } from '../types.js'; /** What a template needs to know about the store it is made for (ยง 5). */ export interface TemplateStore { /** The code of every attribute: one `attr:` column each (products). */ attributeCodes: readonly string[]; /** The `namespace.key` of every custom field of the entity: one `metafield:` column each. */ metafieldKeys: readonly string[]; /** The merchant's name format, for the address columns. */ nameFormat: 'single' | 'split'; } /** * The columns of the template of an entity: the fixed ones, then (for products) * one `attr:` for each attribute of the store, then one * `metafield:.` for each custom field. An address file has the * name as `recipient`, or as `given_name` and `family_name`, by the name format. */ export declare function templateColumns(entity: ImportEntity, store: TemplateStore): string[]; /** * The template an admin downloads (D-13): a header row for this store and two * example rows with reserved keys. The file starts with a byte order mark, so * that a spreadsheet reads it as UTF-8; the reader tolerates it. */ export declare function buildTemplate(entity: ImportEntity, store: TemplateStore): string;