import { Property } from "../util/property"; import { Menu } from "../interface/menu"; import { OutlinerNode } from "./abstract/outliner_node"; export interface CollectionOptions { children?: string[]; name?: string; export_codec?: string; export_path?: string; offset?: ArrayVector3; model_identifier?: string; visibility?: boolean; scope?: number; } /** * Collections are "selection presets" for a set of groups and elements in your project, independent from outliner hierarchy */ export declare class Collection { uuid: string; name: string; selected: boolean; /** * List of direct children, referenced by UUIDs */ children: string[]; export_path: string; export_codec: string; visibility: boolean; scope: number; saved: boolean; static properties: Record>; /** * Get all collections */ static all: Collection[]; /** * Get selected collections */ static selected: Collection[]; constructor(data: CollectionOptions, uuid?: string); extend(data: CollectionOptions): this; select(event?: KeyboardEvent | MouseEvent): this; clickSelect(event: MouseEvent): void; /** * Get all direct children */ getChildren(): OutlinerNode[]; add(): this; /** * Adds the current outliner selection to this collection */ addSelection(): this; /** * Returns the visibility of the first contained node that supports visibility. Otherwise returns true. */ getVisibility(): boolean; /** * Get all children, including indirect ones */ getAllChildren(): OutlinerNode[]; /** * Check if the node is contained in this collection, directly or indirectly * @returns {true} if the collection contains the node */ contains(node: OutlinerNode): boolean; /** * Toggle visibility of everything in the collection * @param event If the alt key is pressed, the result is inverted and the visibility of everything but the collection will be toggled */ toggleVisibility(event: KeyboardEvent | MouseEvent): void; /** * Opens the context menu */ showContextMenu(event: any): this; getUndoCopy(): { uuid: string; index: number; }; getSaveCopy(): { uuid: string; }; /** * Opens the properties dialog */ propertiesDialog(): void; static menu: Menu; } declare const global: { Collection: typeof import("./collections").Collection; }; declare global { type Collection = import('./collections').Collection; const Collection: typeof global.Collection; } export {};