import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types'; import { ListSupportedLocalesOptions, ListSupportedLocalesResponse, V2Locale, UpdateLocale, BulkCreateLocalesOptions, BulkCreateLocalesResponse, MaskedLocale, BulkUpdateLocalesOptions, BulkUpdateLocalesResponse, BulkDeleteLocalesResponse, CreateNewPrimaryLocaleResponse, CreateNewPrimaryLocaleApplicationErrors, GetNewPrimaryLocaleStatusResponse, SetVisitorPrimaryLocaleResponse, SetVisitorPrimaryLocaleApplicationErrors, LocaleCreatedEnvelope, LocaleDeletedEnvelope, LocaleMultilingualPrimaryLocaleChangedEnvelope, LocaleUpdatedEnvelope, V2LocaleQuery, QueryLocalesOptions, typedQueryLocales, LocalesQueryBuilder } from './index.typings.js'; export { AccountInfo, AccountInfoMetadata, ActionEvent, Address, AddressHint, App, ApplicationError, Asset, BaseEventMetadata, BillingSubscriptionCancelled, BulkActionMetadata, BulkCreateLocalesRequest, BulkDeleteLocalesRequest, BulkDeleteLocalesResponseBulkLocaleResult, BulkLocaleResult, BulkUpdateLocalesRequest, BulkUpdateLocalesResponseBulkLocaleResult, BusinessSchedule, Categories, ChangeMainLocaleRequest, ChangeMainLocaleResponse, CommonQueryWithEntityContext, ConnectedToSite, ConnectionLost, ConnectionVerified, ConsentPolicy, ContactVerificationStatus, ContactVerificationStatusChanged, ContactVerificationStatusWithLiterals, CreateLocaleRequest, CreateLocaleResponse, CreateNewPrimaryLocalePayload, CreateNewPrimaryLocaleRequest, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomTag, DayOfWeek, DayOfWeekWithLiterals, DeleteContext, DeleteLocaleRequest, DeleteLocaleResponse, DeleteStatus, DeleteStatusWithLiterals, DisconnectedFromSite, DnssecChanged, DomainChangedEvent, DomainChangedEventPayloadOneOf, DomainEvent, DomainEventBodyOneOf, EditorlessAssigned, EditorlessUnassigned, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExpirationDateChanged, Expired, File, FinishSuccessfulData, FinishWithErrorData, ForceDeleteLocaleRequest, ForceDeleteLocaleResponse, GeoCoordinates, GetLocaleRequest, GetLocaleResponse, GetNewPrimaryLocaleStatusRequest, GetNewPrimaryLocaleStatusResponseDataOneOf, GraceEnded, IdentificationData, IdentificationDataIdOneOf, InvalidateCache, InvalidateCacheGetByOneOf, ItemMetadata, ListSupportedLocalesRequest, Locale, LocaleVisibility, LocaleVisibilityWithLiterals, LocalesQueryResult, ManagementTypeChanged, MessageEnvelope, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, Multilingual, Namespace, NamespaceChanged, NamespaceWithLiterals, OdeditorAssigned, OdeditorUnassigned, OwnerChanged, Page, Pages, PicassoAssigned, PicassoUnassigned, PlacementType, PlacementTypeWithLiterals, PriceIncreaseProcessed, PrivacyChanged, PropagationStarted, Properties, QueryLocalesRequest, QueryLocalesResponse, RawCreateLocaleRequest, RawCreateLocaleResponse, RedemptionEnded, RegionOptions, Registered, RegistrationCancelled, RegistrationExtended, ResolutionMethod, ResolutionMethodWithLiterals, RestoreInfo, ServiceProvisioned, ServiceRemoved, SetVisitorPrimaryLocaleRequest, SiteCreated, SiteCreatedContext, SiteCreatedContextWithLiterals, SiteDeleted, SiteHardDeleted, SiteMarkedAsTemplate, SiteMarkedAsWixSite, SitePropertiesEvent, SitePropertiesUpdated, SitePublished, SitePurgedExternally, SiteRenamed, SiteTransferred, SiteUndeleted, SiteUnpublished, SiteUrlChanged, SortOrder, SortOrderWithLiterals, Sorting, SpecialHourPeriod, State, StateWithLiterals, Status, StatusWithLiterals, StudioAssigned, StudioTwoAssigned, StudioTwoUnassigned, StudioUnassigned, SupportedLanguage, SupportedLocale, TimePeriod, URI, URIs, UpdateLocaleRequest, UpdateLocaleResponse, UrlStructure, UrlStructureOverride, UrlStructureWithLiterals, UserDomainMediaDisabled, UserDomainMediaEnabled, V2LocaleQuerySpec, VerificationStarted, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WixelAssigned, WixelUnassigned, utils } from './index.typings.js'; declare function listSupportedLocales$1(httpClient: HttpClient): ListSupportedLocalesSignature; interface ListSupportedLocalesSignature { /** * Retrieves a list of all Wix-supported locales that can be added to a site. * * Call this method to display supported language details when creating or updating a locale. * @returns Response message for listing supported locales */ (options?: ListSupportedLocalesOptions): Promise>; } declare function createLocale$1(httpClient: HttpClient): CreateLocaleSignature; interface CreateLocaleSignature { /** * Creates a new secondary locale. * * This method adds a new secondary locale to the site. A site can have up to 200 locales and up to 100 visible locales. * * To retrieve a list of all locales supported by Wix that can be created on a site, call List Supported Locales. * *
* Important: * * - This method can only be called on sites where multilingual mode is enabled. * - This method creates only secondary locales. To create and set a new primary locale, call Create New Primary Locale. * *
* @param - Locale to create. * @returns The created locale. */ (locale: NonNullablePaths): Promise>; } declare function getLocale$1(httpClient: HttpClient): GetLocaleSignature; interface GetLocaleSignature { /** * Retrieves a locale by ID. * @param - ID of the locale to retrieve. * @returns The requested locale. */ (localeId: string): Promise>; } declare function updateLocale$1(httpClient: HttpClient): UpdateLocaleSignature; interface UpdateLocaleSignature { /** * Updates a locale by ID. * @param - Locale ID. * * The locale ID is made up of the language and region codes supported by Wix. For example, `"en-US"` for U.S. English. * @returns The updated locale. */ (_id: string, locale: NonNullablePaths): Promise>; } declare function deleteLocale$1(httpClient: HttpClient): DeleteLocaleSignature; interface DeleteLocaleSignature { /** * Deletes a locale by ID. * * This method removes only secondary locales from a site. You can't call this method to delete the primary locale or a locale that's set as the visitor primary locale. * *
* Warning: * * Deleting a locale permanently removes it and all its associated data from the site. * *
* *
* Tip: * * - To change the primary locale, call Create New Primary Locale. This method automatically deletes the original primary locale and transfers its data to the new primary locale. * - To delete a locale that's set as the visitor primary locale, first call Set Visitor Primary Locale to change the visitor primary locale, then call this method. * *
* @param - ID of the locale to delete. * @returns Response message for deleting a Locale. */ (localeId: string): Promise; } declare function bulkCreateLocales$1(httpClient: HttpClient): BulkCreateLocalesSignature; interface BulkCreateLocalesSignature { /** * Creates multiple secondary locales. * *
* Important: * * - This method can only be called on sites where multilingual mode is enabled. * *
* @param - Locales to create. * @returns Response message for bulk creating Locales. */ (locales: NonNullablePaths[], options?: BulkCreateLocalesOptions): Promise>; } declare function bulkUpdateLocales$1(httpClient: HttpClient): BulkUpdateLocalesSignature; interface BulkUpdateLocalesSignature { /** * Updates multiple locales. * @param - Locales to update. * @returns Response message for bulk updating Locales. */ (locales: NonNullablePaths[], options?: BulkUpdateLocalesOptions): Promise>; } declare function bulkDeleteLocales$1(httpClient: HttpClient): BulkDeleteLocalesSignature; interface BulkDeleteLocalesSignature { /** * Deletes multiple locales. * * This method removes only secondary locals from a site. The primary locale can't be deleted. * *
* Warning: * * This method permanently deletes multiple secondary locales and their data from the site. *
* @param - IDs of locales to delete. * @returns Response message for bulk deleting Locales. */ (localeIds: string[]): Promise>; } declare function createNewPrimaryLocale$1(httpClient: HttpClient): CreateNewPrimaryLocaleSignature; interface CreateNewPrimaryLocaleSignature { /** * Creates and assigns a new primary locale for a site. * * This method changes the site's primary locale. The process may take time, depending on the amount of content present on the site. When called, this method returns a token, which you can use with the Get New Primary Locale Status method to check the status of the primary locale change. * *
* Important: * * - The desired new primary locale can't already exist as a secondary locale on the site. If the locale is already a secondary locale on the site, you must first remove it from the site by calling Delete Locale before changing the primary locale. * - This method automatically deletes the original primary locale and transfers its data to the new primary locale. * *
* @param - New primary locale. * @returns Response message for changing the main locale. */ (primaryLocale: V2Locale): Promise & { __applicationErrorsType?: CreateNewPrimaryLocaleApplicationErrors; }>; } declare function getNewPrimaryLocaleStatus$1(httpClient: HttpClient): GetNewPrimaryLocaleStatusSignature; interface GetNewPrimaryLocaleStatusSignature { /** * Retrieves the status of the Create New Primary Locale method. * * Call this method to see if your primary locale was successfully changed. Specify the token returned by Create New Primary Locale. If the token specified is invalid, a 404 error is returned. * @param - Token to retrieve the process status. Returned in the response of Create New Primary Locale. * @returns Response message for getting the status of the change main locale process. */ (token: string): Promise>; } declare function setVisitorPrimaryLocale$1(httpClient: HttpClient): SetVisitorPrimaryLocaleSignature; interface SetVisitorPrimaryLocaleSignature { /** * Sets a locale as the visitor primary locale for the site. * * Only one locale can be set as the visitor primary locale at a time. When you update the visitor primary locale, site visitors see the new default language on their next page load. * *
* Important: * * The specified locale's `visibility` must be set to `"VISIBLE"`. * *
* @param - ID of the locale to set as visitor primary. * @returns Response message for setting a visitor primary locale. */ (localeId: string): Promise & { __applicationErrorsType?: SetVisitorPrimaryLocaleApplicationErrors; }>; } declare const onLocaleCreated$1: EventDefinition; declare const onLocaleDeleted$1: EventDefinition; declare const onLocaleMultilingualPrimaryLocaleChanged$1: EventDefinition; declare const onLocaleUpdated$1: EventDefinition; declare function customQueryLocales(httpClient: HttpClient): { (query: V2LocaleQuery, options?: QueryLocalesOptions): ReturnType; (options?: QueryLocalesOptions): LocalesQueryBuilder; }; declare const listSupportedLocales: MaybeContext & typeof listSupportedLocales$1>; declare const createLocale: MaybeContext & typeof createLocale$1>; declare const getLocale: MaybeContext & typeof getLocale$1>; declare const updateLocale: MaybeContext & typeof updateLocale$1>; declare const deleteLocale: MaybeContext & typeof deleteLocale$1>; declare const bulkCreateLocales: MaybeContext & typeof bulkCreateLocales$1>; declare const bulkUpdateLocales: MaybeContext & typeof bulkUpdateLocales$1>; declare const bulkDeleteLocales: MaybeContext & typeof bulkDeleteLocales$1>; declare const createNewPrimaryLocale: MaybeContext & typeof createNewPrimaryLocale$1>; declare const getNewPrimaryLocaleStatus: MaybeContext & typeof getNewPrimaryLocaleStatus$1>; declare const setVisitorPrimaryLocale: MaybeContext & typeof setVisitorPrimaryLocale$1>; declare const queryLocales: MaybeContext & typeof customQueryLocales>; /** * Triggered when a secondary locale is created. */ declare const onLocaleCreated: BuildEventDefinition & typeof onLocaleCreated$1; /** * Triggered when a locale is deleted. */ declare const onLocaleDeleted: BuildEventDefinition & typeof onLocaleDeleted$1; /** * Triggered when a new primary locale is created. */ declare const onLocaleMultilingualPrimaryLocaleChanged: BuildEventDefinition & typeof onLocaleMultilingualPrimaryLocaleChanged$1; /** * Triggered when a locale is updated. */ declare const onLocaleUpdated: BuildEventDefinition & typeof onLocaleUpdated$1; export { BulkCreateLocalesOptions, BulkCreateLocalesResponse, BulkDeleteLocalesResponse, BulkUpdateLocalesOptions, BulkUpdateLocalesResponse, CreateNewPrimaryLocaleApplicationErrors, CreateNewPrimaryLocaleResponse, GetNewPrimaryLocaleStatusResponse, ListSupportedLocalesOptions, ListSupportedLocalesResponse, LocaleCreatedEnvelope, LocaleDeletedEnvelope, LocaleMultilingualPrimaryLocaleChangedEnvelope, LocaleUpdatedEnvelope, LocalesQueryBuilder, MaskedLocale, QueryLocalesOptions, SetVisitorPrimaryLocaleApplicationErrors, SetVisitorPrimaryLocaleResponse, UpdateLocale, V2Locale, V2LocaleQuery, bulkCreateLocales, bulkDeleteLocales, bulkUpdateLocales, createLocale, createNewPrimaryLocale, deleteLocale, getLocale, getNewPrimaryLocaleStatus, listSupportedLocales, onLocaleCreated, onLocaleDeleted, onLocaleMultilingualPrimaryLocaleChanged, onLocaleUpdated, queryLocales, setVisitorPrimaryLocale, updateLocale };