import type { DefaultElements, GetTagParams, MakeRequest, MetaSysProps, SysLink } from '../common-types'; export type TagVisibility = 'private' | 'public'; export type TagSysProps = Pick & { type: 'Tag'; visibility: TagVisibility; space: SysLink; environment: SysLink; }; export type TagProps = { sys: TagSysProps; name: string; }; export type CreateTagProps = Omit & { sys: Pick; }; export type UpdateTagProps = Omit & { sys: Pick; }; export type DeleteTagParams = GetTagParams & { version: number; }; export type TagCollectionProps = { sys: { type: 'Array'; }; items: TagProps[]; total: number; }; export interface TagCollection { items: Tag[]; total: number; } type TagApi = { update(): Promise; delete(): Promise; }; export interface Tag extends TagProps, DefaultElements, TagApi { } /** * @private */ export default function createTagApi(makeRequest: MakeRequest): TagApi; /** * @private */ export declare function wrapTag(makeRequest: MakeRequest, data: TagProps): Tag; /** * @private */ export declare const wrapTagCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp) => import("../common-types").Collection; export {};