import { NativePcmItem, PcmItem } from "./item.js"; /** * An lighting environment from the PCM. */ export interface PcmEnvironment extends PcmItem { /** * A unique but human-readable alias of the environment. */ alias?: string; /** * A url to the environment's file. */ url: string; /** * The recommended default rotation of the environment. */ defaultRotation: number; /** * The recommended exposure of the environment. */ exposure: number; } /** * @internal The environment how it is returned by the PCM api. */ export interface NativePcmEnvironment extends NativePcmItem { alias?: string; filenameHDR: string; defaultRotation: number; exposureHDR: number; } /** * Subset of the `PcmEnvironment` that are required for the * modification and creation of a environment */ export type EditablePcmEnvironmentData = Pick; /** * @internal * Subset of the `NativePcmEnvironment` that are required for the * modification and creation of a environment */ export type NativeEditablePcmEnvironmentData = Pick; /** * Checks if the given object is a PcmEnvironment. * * @param obj The object to check. * @returns True if the object is a PcmEnvironment, false otherwise. */ export declare function isPcmEnvironment(obj: unknown): obj is PcmEnvironment; /** * Gets a list with all available environments. * * @param auth The authorisation information. * @param baseUrl The base url. * @returns A list with all available environments. */ export declare function getEnvironments(auth?: import("../methods/auth.js").Auth, baseUrl?: string): Promise; /** * Gets an environment by its id. * * Using the id is not filtered (e.g., permissions, deprecations, etc.) and may * return elements that are not returned by {@link getEnvironments}. * * @param id The id of the environment. * @param auth The authorisation information. * @param baseUrl The base url. * @returns The environment with the given id or undefined if no environment * with the given id exists. */ export declare function getEnvironmentById(id: string, auth?: import("../methods/auth.js").Auth, baseUrl?: string): Promise; /** * Creates a new environment with a given .env file and configuration. * * If the file or configuration is invalid a exception is thrown. * * After a successful creation the access right `PermissionRole.OWNER` is * automatically added to the newly created item * * @param file The .env file. * @param config The user defined configuration of the environment. * @param auth The authorisation information. * @param baseUrl The base url. * @returns The newly created environment */ export declare function createEnvironment(file: File, config: EditablePcmEnvironmentData, auth?: import("../methods/auth.js").Auth, baseUrl?: string): Promise; /** * Partially updates the values of the given environment. * * This requires `PermissionRole.OWNER` access rights on the given item. * Otherwise a exception is thrown. * * @param environmentId The id of the environment that should be modified * @param config The values that should be updated for the environment * @param auth The authorisation information. * @param baseUrl The base url. * @returns The updated environment */ export declare function patchEnvironment(environmentId: string, config: Partial, auth?: import("../methods/auth.js").Auth, baseUrl?: string): Promise; /** * Permanently deletes the given environment. This action can`t be reverted! * * This requires `PermissionRole.OWNER` access rights on the given item. * Otherwise a exception is thrown. * * @param environment The environment 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 deleteEnvironment(environment: PcmEnvironment, auth?: import("../methods/auth.js").Auth, baseUrl?: string): Promise;