import { NativePcmItem, PcmItem } from "./item.js"; /** * A folder from the PCM. */ export interface PcmFolder extends PcmItem { entityType: string; itemIds: string[]; } /** * @internal The geometry how it is returned by the PCM api. */ interface NativePcmFolder extends NativePcmItem { entity_type: string; items: string[]; } /** * Checks if the given object is a PcmFolder. * * @param obj The object to check. * @returns True if the object is a PcmFolder, false otherwise. */ export declare function isPcmFolder(obj: unknown): obj is PcmFolder; /** * Gets a list with all available folders. * * @param auth The authorisation information. * @param baseUrl The base url. * @returns A list with all available folders. */ export declare function getFolders(auth?: import("../methods/auth.js").Auth, baseUrl?: string): Promise; /** * Subset of the `PcmFolder` that are required for the * creation of a folder */ export type CreatePcmFolderData = Pick; /** * Subset of the `PcmFolder` that can be used for editing a folder */ export type EditablePcmFolderData = Partial>; /** * @internal * Subset of the `NativePcmFolder` that are required for the * creation of a folder */ export type NativeCreatePcmFolderData = Pick; /** * @internal * Subset of the `NativePcmFolder` that are required for the * modification of a folder */ export type NativeEditablePcmFolderData = Partial>; /** * Creates a new folder * * @param auth The authorisation information. * @param baseUrl The base url. * @returns The newly created folder */ export declare function createFolder(data: CreatePcmFolderData, auth?: import("../methods/auth.js").Auth, baseUrl?: string): Promise; /** * Permanently deletes a given Folder. This action can`t be reverted! * * All items within the folder will be moved to the folder`s parent folder. * * @param folder The folder that should be deleted * @param auth The authorisation information. * @param baseUrl The base url. * @returns `true` if the deletion was successful. Otherwise `false` */ export declare function deleteFolder(folder: PcmFolder, auth?: import("../methods/auth.js").Auth, baseUrl?: string): Promise; /** * * @param folderId The id of the folder that should be modified * @param config The values that should be updated for the folder * @param auth The authorisation information. * @param baseUrl The base url. * @returns `True` if the modification was successful. Otherwise `false` */ export declare function patchFolder(folderId: string, config: EditablePcmFolderData, auth?: import("../methods/auth.js").Auth, baseUrl?: string): Promise; /** * Moves the given items to the specified folder. * * @param folder The folder where the items should be moved to. If `null` the items will be moved to the root * @param items All items that should be moved to the folder * @param auth The authorisation information. * @param baseUrl The base url. */ export declare function moveItemsToFolder(folder: PcmFolder | null, items: PcmItem[], auth?: import("../methods/auth.js").Auth, baseUrl?: string): Promise; export {};