export type Setting = { name: string; value: unknown; is_json?: boolean | number; }; export declare function getSetting(name: string, defaultValue: T): Promise; /** * Synchronous companion to {@link getSetting}: reads the already-loaded in-memory cache and * never touches the database. Returns `defaultValue` when the cache has not been warmed yet * (warmed at boot in `modules/setting/bootstrap.ts`, and per event-batch in the subscriber * process) or the row is absent. Use only in genuinely synchronous paths — the pricing * formatter, Handlebars email helpers, AJV schema builders — and prefer async `getSetting` * everywhere else. */ export declare function getSettingSync(name: string, defaultValue: T): T; export declare function refreshSetting(): Promise; export declare function getStoreName(defaultValue?: string): Promise; export declare function getStoreDescription(): Promise; /** * Language settings (spec §6.1 D11). DB-backed (admin Store Setting page), falling back * to config `shop.language` when the setting is empty OR absent — so a freshly upgraded * / half-seeded store behaves exactly like today (single language = `shop.language`). */ export declare function getStoreLanguage(): Promise; /** * Synchronous companion to {@link getStoreLanguage}: the store's default language, read from * the in-memory setting cache and falling back to config `shop.language`. Mirrors * {@link getStoreCurrency} / {@link getStoreTimezone} — cache-only, no DB round-trip — so it is * safe in the synchronous display paths (the `Intl` formatters behind `Price.text`, * `DateTime.text` and `toPrice`, the Handlebars email helpers) and as `getActiveLocale()`'s * off-request fallback. A cold cache (unit tests with no DB, or a call before the boot-time * `refreshSetting()`) returns the config fallback, matching the legacy behaviour. */ export declare function getStoreLanguageSync(): string; /** * Enabled storefront locales — the deduped union of the default and the configured * "additional" list (`storeLanguages`), default first. So the default is ALWAYS enabled, * and a default that also appears in the additional list is just deduped (no conflict). */ export declare function getEnabledLanguages(): Promise; /** * The configured ADDITIONAL languages — the enabled set minus the default. This is what * the admin picks in "Additional languages"; it strips the default even if a legacy * `storeLanguages` value still contains it, so the form never shows the default as an * "additional" entry. */ export declare function getAdditionalLanguages(): Promise; /** Admin panel locale (store-wide, independent of the storefront). Defaults to `'en'`. */ export declare function getAdminLanguage(): Promise; /** * Store currency (ISO 4217). Reads the admin setting `storeCurrency` from the in-memory cache, * falling back to config `shop.currency`. SYNCHRONOUS and cache-only — no per-call DB round-trip * — so it is safe in the pricing formatter, cart build, email helpers and other hot/sync paths. * The cache is warmed at boot (modules/setting/bootstrap.ts) and refreshed on save; a cold cache * (e.g. unit tests with no DB) simply returns the config fallback, matching the legacy behaviour. * An existing cart/order keeps its own persisted `currency` — this is only the default for NEW * carts and the display fallback when no currency is in context. */ export declare function getStoreCurrency(): string; /** * Store DISPLAY timezone (IANA name). Reads the admin setting `storeTimeZone` from the cache, * falling back to the operational `shop.timezone` config. Drives date-display formatting (the * `DateTime` GraphQL type). It is NOT the database-session timezone — that stays `shop.timezone` * (config), set by the pool at connection time before any query can run. Synchronous, cache-only. */ export declare function getStoreTimezone(): string; /** * Store weight unit (kg | g | lb | oz). Reads the admin setting `weightUnit` from the cache, * falling back to legacy config `shop.weightUnit`. Stored product/package weights are unit-less * numbers; changing this relabels them, it does not convert. Synchronous, cache-only. */ export declare function getWeightUnit(): string; /** * Store dimension unit (cm | mm | in). Reads the admin setting `dimensionUnit` from the cache, * falling back to legacy config `shop.dimensionUnit`. Same reinterpret-not-convert semantics as * the weight unit. Synchronous, cache-only. */ export declare function getDimensionUnit(): string; export declare function getStoreEmail(): Promise; export declare function getStorePhoneNumber(): Promise; export declare function getStoreCountry(): Promise; export declare function getStoreProvince(): Promise; export declare function getStoreCity(): Promise; export declare function getStoreAddress(): Promise; export declare function getStorePostalCode(): Promise;