import type { AddressSurface, ResolvedAddressSchema } from '@evershop/evershop/lib/address/types'; /** * The address form for a country (spec § 3.9): `addressSchema(country, locale, * surface)`. `country` null → the store's default-country setting, and * `schema.country` tells the caller what it got (D-20). urql caches per * `(query, variables)`, so every component asking for the same country shares * one request. The request locale travels in the `X-Locale` header the * storefront adds to every same-origin fetch; `locale` is only for an explicit * override. */ export declare const AddressSchemaQuery = "\n query AddressSchema($country: String, $locale: String, $surface: String) {\n addressSchema(country: $country, locale: $locale, surface: $surface) {\n country\n locale\n script\n format\n nameOrder\n upper\n fields {\n id\n token\n type\n labelType\n label\n required\n pattern {\n regex\n messageKey\n }\n placeholder\n optionSource\n dependsOn\n row\n }\n }\n }\n"; export declare function useAddressSchema(country: string | null | undefined, surface: AddressSurface, locale?: string | null): { schema: ResolvedAddressSchema | undefined; fetching: boolean; error: Error | undefined; };