import type { DefaultElements, MetaLinkProps, BasicMetaSysProps, SysLink, MakeRequest } from '../common-types'; export type EnvironmentAliasProps = { /** * System meta data */ sys: BasicMetaSysProps & { space: SysLink; }; environment: { sys: MetaLinkProps; }; }; export type CreateEnvironmentAliasProps = Omit; export interface EnvironmentAlias extends EnvironmentAliasProps, DefaultElements { /** * Sends an update to the server with any changes made to the object's properties. Currently, you can only change the id of the alias's underlying environment. See the example below. * @memberof EnvironmentAlias * @func update * @return {Promise} Object returned from the server with updated changes. * ```javascript * const contentful = require('contentful-management') * * const client = contentful.createClient({ * accessToken: '' * }) * * client.getSpace('') * .then((space) => space.getEnvironmentAlias('')) * .then((alias) => { * alias.environment.sys.id = '' * return alias.update() * }) * .then((alias) => console.log(`alias ${alias.sys.id} updated.`)) * .catch(console.error) * ``` */ update(): Promise; /** * Deletes this object on the server. * @memberof EnvironmentAlias * @func delete * @return {Promise} Promise for the deletion. It contains no data, but the Promise error case should be handled. * ```javascript * const contentful = require('contentful-management') * * const client = contentful.createClient({ * accessToken: '' * }) * * client.getSpace('') * .then((space) => space.getEnvironmentAlias('')) * .then((alias) => { * return alias.delete() * }) * .then(() => console.log(`Alias deleted.`)) * .catch(console.error) * ``` */ delete(): Promise; } /** * @private * @param makeRequest - function to make requests via an adapter * @param data - Raw environment alias data * @return Wrapped environment alias data */ export declare function wrapEnvironmentAlias(makeRequest: MakeRequest, data: EnvironmentAliasProps): EnvironmentAlias; /** * @private * @param makeRequest - function to make requests via an adapter * @param data - Raw environment alias collection data * @return Wrapped environment alias collection data */ export declare const wrapEnvironmentAliasCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp) => import("../common-types").Collection;