import { Filesystem } from "../file_system"; import { CSS3DObject } from "../lib/CSS3DRenderer"; export type ReferenceImageViewMode = 'flat_image' | 'blueprint' | 'plane'; export type ReferenceImageLayer = 'background' | 'viewport' | 'float' | 'blueprint'; export type ReferenceImageScope = 'project' | 'global' | 'built_in'; interface ReferenceImageOptions { name?: string; layer?: ReferenceImageLayer; scope?: string; is_blueprint?: boolean; view_mode?: ReferenceImageViewMode; condition?: ConditionResolvable; position?: ArrayVector2; size?: ArrayVector2; plane_position?: ArrayVector3; plane_rotation?: ArrayVector3; flip_x?: boolean; flip_y?: boolean; rotation?: number; opacity?: number; visibility?: boolean; sync_to_timeline?: boolean; cull_backface?: boolean; clear_mode?: boolean; attached_side?: string; source?: string; modes?: string[]; } export declare class ReferenceImage { name: string; layer: ReferenceImageLayer; scope: ReferenceImageScope; view_mode: ReferenceImageViewMode; position: number[]; size: number[]; flip_x: boolean; flip_y: boolean; rotation: number; plane_position?: ArrayVector3; plane_rotation?: ArrayVector3; opacity: number; visibility: boolean; sync_to_timeline: boolean; cull_backface: boolean; clear_mode: boolean; attached_side: string; source: string; modes: string[]; uuid: string; cache_version: number; condition: ConditionResolvable; toolbar: HTMLElement; /**@private */ _edit_events_initialized?: boolean; /**@private */ _modify_nodes: any[]; removed?: true; defaults: {}; dark_background: boolean; image_is_loaded: boolean; auto_aspect_ratio: boolean; is_video: boolean; node: HTMLDivElement; img: HTMLImageElement; video: HTMLVideoElement & { _loading?: boolean; ref_source?: any; }; scene_object: CSS3DObject; menu: Menu; constructor(data?: ReferenceImageOptions); get aspect_ratio(): number; get source_width(): number; get source_height(): number; get is_blueprint(): boolean; set is_blueprint(v: boolean); extend(data: ReferenceImageOptions): void; getSaveCopy(): ReferenceImageOptions; resolveCondition(): boolean; addAsReference(save?: boolean): this; addAsGlobalReference(save?: boolean): this; addAsBuiltIn(save?: boolean): this; select(force?: boolean): this; unselect(): this; get selected(): boolean; save(): this; update(): this; getZoomLevel(): number; updateTransform(): this; getClampedPosition(): number[]; updateClearMode(): void; detach(): void; setupEditHandles(): this; projectMouseCursor(x: number, y: number): boolean | ArrayVector2; openContextMenu(event: MouseEvent): this; reset(): this; delete(force?: boolean): Promise; changeLayer(layer: ReferenceImageLayer): this; changeScope(new_scope: ReferenceImageScope): this; enableBlueprintMode(): this; propertiesDialog(): this; static properties: Record; static supported_extensions: string[]; static image_extensions: string[]; static video_extensions: string[]; static all: ReferenceImage[]; static active: ReferenceImage[]; static current_project: ReferenceImage[]; static selected: ReferenceImage | null; static built_in: ReferenceImage[]; static global: ReferenceImage[]; static updateAll(): void; } export declare function initReferenceImages(): Promise; export declare const ReferenceImageMode: { active: boolean; toolbar: Toolbar; activate(): void; deactivate(): void; importReferences(files: Filesystem.FileResult[]): Promise; saveGlobalReferences(): void; }; declare const global: { ReferenceImage: typeof import("./reference_images").ReferenceImage; ReferenceImageMode: { active: boolean; toolbar: Toolbar; activate(): void; deactivate(): void; importReferences(files: Filesystem.FileResult[]): Promise; saveGlobalReferences(): void; }; }; declare global { const ReferenceImage: typeof global.ReferenceImage; type ReferenceImage = import('./reference_images').ReferenceImage; const ReferenceImageMode: typeof global.ReferenceImageMode; interface BarItemRegistry { edit_reference_images: Action; add_reference_image: Action; reference_image_from_clipboard: Action; toggle_all_reference_images: Action; reference_image_list: Action; } } export {};