import type { DefaultElements, MetaSysProps, MetaLinkProps, MakeRequest } from '../common-types'; export type TeamProps = { /** * System metadata */ sys: MetaSysProps & { memberCount: number; organization: { sys: MetaLinkProps; }; }; /** * Name of the team */ name: string; /** * Description of the team */ description: string; }; export type CreateTeamProps = Omit; export interface Team extends TeamProps, DefaultElements { /** * Deletes this object on the server. * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. * @example ```javascript * const contentful = require('contentful-management') * * const client = contentful.createClient({ * accessToken: '' * }) * * client.getOrganization('organization_id') * .then(org => org.getOrganizationMembership('organizationMembership_id')) * .then((team) => { * team.delete(); * }) * .catch(console.error) * ``` */ delete(): Promise; /** * 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.getOrganization('organization_id') * .then(org => org.getTeam('team_id')) * .then((team) => { * team.description = 'new description'; * team.update(); * }) * .catch(console.error) * ``` */ update(): Promise; } /** * @private * @param makeRequest - function to make requests via an adapter * @param data - Raw team data * @return Wrapped team data */ export declare function wrapTeam(makeRequest: MakeRequest, data: TeamProps): Team; /** * @private */ export declare const wrapTeamCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp) => import("../common-types").Collection;