import Base, { MaybeRaw } from "../../../Base"; import { Asset, NamespaceMetadata, NamespaceRushStatus } from "../../../interfaces/cosmo/asset"; import { Namespace } from "../../../interfaces/cosmo/namespace"; /** * @class Namespace * @extends Base * * @remarks * **Under development, breaking changes possible** * * Represents a Namespace resource in Cosmo, providing methods to interact with the Namespace API. */ export declare class CosmoNamespace extends Base { protected getEndpoint(endpoint: string): string; /** * Create a new Namespace in the specified Organization and Space. * @remarks * ** Under development, breaking changes possible** * @param orgName Name of the Organization * @param spaceName Name of the Space * @param namespaceName Name of the Namespace to create * @param defaultStatus Status that asset references within this namespace will have by default * @returns The created Namespace */ createNamespace(orgName: string, spaceName: string, namespaceName: string, defaultStatus?: string, raw?: { raw: R; }): Promise>; /** * Change the status of a reference (e.g. Asset) * @remarks * ** Under development, breaking changes possible** * @param orgName Name of the Organization * @param spaceName Name of the Space * @param namespaceName Name of the Namespace * @param refId ID of the reference to change status * @param status New status to set for the reference * @returns The updated Reference */ changeStatus(orgName: string, spaceName: string, refId: string, namespaceName: string, status: NamespaceRushStatus, raw?: { raw: R; }): Promise>; /** * Update the metadata of a reference (e.g. Asset) * @remarks * ** Under development, breaking changes possible** * @param orgName Name of the Organization * @param spaceName Name of the Space * @param namespaceName Name of the Namespace * @param refId ID of the reference to change status * @param metadata New metadata to set * @returns The updated Reference */ updateMetadata(orgName: string, spaceName: string, refId: string, namespaceName: string, metadata: NamespaceMetadata, raw?: { raw: R; }): Promise>; }