import type { MakeRequest } from './common-types'; /** * @private */ export type ContentfulUIConfigApi = ReturnType; /** * @private */ export default function createUserUIConfigApi(makeRequest: MakeRequest): { /** * Sends an update to the server with any changes made to the object's properties * @return Object returned from the server with updated changes. * @example ```javascript * const contentful = require('contentful-management') * * const client = contentful.createClient({ * accessToken: '' * }) * * client.getSpace('') * .then((space) => space.getEnvironment('')) * .then((environment) => environment.getUserUIConfig()) * .then((uiConfig) => { * uiConfig.entryListViews = [...] * return uiConfig.update() * }) * .then((uiConfig) => console.log(`UserUIConfig updated.`)) * .catch(console.error) * ``` */ update: () => Promise; };