import { RequestOptionsFactory } from '@wix/sdk-types'; /** Creates a translation schema. */ export declare function createSchema(payload: object): RequestOptionsFactory; /** Retrieves a translation schema by ID. */ export declare function getSchema(payload: object): RequestOptionsFactory; /** Retrieves a translation schema by key. */ export declare function getSchemaByKey(payload: object): RequestOptionsFactory; /** * 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. *
*/ export declare function updateSchema(payload: object): RequestOptionsFactory; /** Deletes a translation schema. */ export declare function deleteSchema(payload: object): RequestOptionsFactory; /** * Creates a query to retrieve a list of schemas. * * > **Note:** * > * > This method can retrieve all schemas with a `GLOBAL` scope and schemas with a `SITE` scope for the site the API request is authorized to access. * * The `querySchemas()` function builds a query to retrieve a list of translation schemas and returns a `SchemasQueryBuilder` object. * * The returned object contains the query definition, which is used to run the query using the [`find()`](https://dev.wix.com/docs/sdk/backend-modules/multilingual/translation/translation-schema/schemas-query-builder/find) function. * * You can refine the query by chaining `SchemasQueryBuilder` functions onto the query. `SchemasQueryBuilder` functions enable you to filter, sort, and control the results that `querySchemas()` returns. * * `querySchemas()` runs with the following `SchemasQueryBuilder` defaults which you can override: * * + [`limit(100)`](https://dev.wix.com/docs/sdk/backend-modules/multilingual/translation/translation-schema/schemas-query-builder/limit) * + [`ascending('_id')`](https://dev.wix.com/docs/sdk/backend-modules/multilingual/translation/translation-schema/schemas-query-builder/ascending) * * The following `SchemasQueryBuilder` functions are supported for `querySchemas()`. For a full description of the operations object, see the object returned for the [`items`](https://dev.wix.com/docs/sdk/backend-modules/multilingual/translation/translation-schema/schemas-query-result/items) property in `SchemasQueryResult`. */ export declare function querySchemas(payload: object): RequestOptionsFactory; /** Retrieves a list of all translation schemas associated with a site, regardless of which app created them. */ export declare function listSiteSchemas(payload: object): RequestOptionsFactory;