import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types'; import { Schema, GetSchemaByKeyIdentifiers, GetSchemaByKeyResponse, UpdateSchema, ListSiteSchemasOptions, ListSiteSchemasResponse, SchemaQuery, QuerySchemasOptions, typedQuerySchemas, SchemasQueryBuilder } from './index.typings.mjs'; export { AccountInfo, ActionEvent, Asset, CommonQueryWithEntityContext, CreateSchemaRequest, CreateSchemaResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteContext, DeleteSchemaRequest, DeleteSchemaResponse, DeleteStatus, DeleteStatusWithLiterals, DomainEvent, DomainEventBodyOneOf, EditorlessAssigned, EditorlessUnassigned, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, FieldType, FieldTypeWithLiterals, GetSchemaByKeyRequest, GetSchemaRequest, GetSchemaResponse, IdentificationData, IdentificationDataIdOneOf, ListSiteSchemasRequest, MessageEnvelope, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, Namespace, NamespaceChanged, NamespaceWithLiterals, OdeditorAssigned, OdeditorUnassigned, PicassoAssigned, PicassoUnassigned, PreviewFields, QuerySchemasRequest, QuerySchemasResponse, RestoreInfo, SchemaField, SchemaKey, SchemaQuerySpec, SchemaScope, SchemaScopeWithLiterals, SchemasQueryResult, ServiceProvisioned, ServiceRemoved, SiteCreated, SiteCreatedContext, SiteCreatedContextWithLiterals, SiteDeleted, SiteHardDeleted, SiteMarkedAsTemplate, SiteMarkedAsWixSite, SitePublished, SitePurgedExternally, SiteRenamed, SiteTransferred, SiteUndeleted, SiteUnpublished, SiteUrlChanged, SortOrder, SortOrderWithLiterals, Sorting, State, StateWithLiterals, StudioAssigned, StudioTwoAssigned, StudioTwoUnassigned, StudioUnassigned, UpdateSchemaRequest, UpdateSchemaResponse, UserDomainMediaDisabled, UserDomainMediaEnabled, ValidateSchemaRequest, ValidateSchemaResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WixelAssigned, WixelUnassigned, utils } from './index.typings.mjs'; declare function createSchema$1(httpClient: HttpClient): CreateSchemaSignature; interface CreateSchemaSignature { /** * Creates a translation schema. * @param - Translation schema to create. * @returns Newly created translation schema. */ (schema: NonNullablePaths): Promise>; } declare function getSchema$1(httpClient: HttpClient): GetSchemaSignature; interface GetSchemaSignature { /** * Retrieves a translation schema by ID. * @param - ID of the translation schema to retrieve. * @returns The requested translation schema. */ (schemaId: string): Promise>; } declare function getSchemaByKey$1(httpClient: HttpClient): GetSchemaByKeySignature; interface GetSchemaByKeySignature { /** * Retrieves a translation schema by key. */ (identifiers: NonNullablePaths): Promise>; } declare function updateSchema$1(httpClient: HttpClient): UpdateSchemaSignature; interface UpdateSchemaSignature { /** * Updates a translation schema. * * To remove a field, pass the field key with an empty object as the value. For example: * * ```json * { * "fields": { * "title": {} * } * } * ``` * *
* Caution: * * Removing a schema field makes the corresponding content field unavailable. *
* @param - Translation schema ID. * @returns Updated Schema. */ (_id: string, schema: NonNullablePaths): Promise>; } declare function deleteSchema$1(httpClient: HttpClient): DeleteSchemaSignature; interface DeleteSchemaSignature { /** * Deletes a translation schema. * @param - ID of the translation schema to delete. */ (schemaId: string): Promise; } declare function listSiteSchemas$1(httpClient: HttpClient): ListSiteSchemasSignature; interface ListSiteSchemasSignature { /** * Retrieves a list of all translation schemas associated with a site, regardless of which app created them. */ (options?: ListSiteSchemasOptions): Promise>; } declare function customQuerySchemas(httpClient: HttpClient): { (query: SchemaQuery, options?: QuerySchemasOptions): ReturnType; (options?: QuerySchemasOptions): SchemasQueryBuilder; }; declare const createSchema: MaybeContext & typeof createSchema$1>; declare const getSchema: MaybeContext & typeof getSchema$1>; declare const getSchemaByKey: MaybeContext & typeof getSchemaByKey$1>; declare const updateSchema: MaybeContext & typeof updateSchema$1>; declare const deleteSchema: MaybeContext & typeof deleteSchema$1>; declare const listSiteSchemas: MaybeContext & typeof listSiteSchemas$1>; declare const querySchemas: MaybeContext & typeof customQuerySchemas>; export { GetSchemaByKeyIdentifiers, GetSchemaByKeyResponse, ListSiteSchemasOptions, ListSiteSchemasResponse, QuerySchemasOptions, Schema, SchemaQuery, SchemasQueryBuilder, UpdateSchema, createSchema, deleteSchema, getSchema, getSchemaByKey, listSiteSchemas, querySchemas, updateSchema };