import { type CanvasElementDef } from '../CanvasElementsPanel/CanvasElementsPanel.svelte'; import type { CanvasLayerKind } from '../../../utils/canvasDocument.js'; export interface MediaLayerListItem { id: string; name: string; kind: CanvasLayerKind; visible?: boolean; locked?: boolean; parentId?: string | null; zIndex?: number; /** Named slots available on a widget definition (for badge). */ namedSlotCount?: number; } interface MediaLayerListProps { layers?: MediaLayerListItem[]; selectedIds?: string[]; /** @deprecated use selectedIds */ selectedId?: string | null; class?: string; onselect?: (id: string, event?: MouseEvent) => void; ontogglevisible?: (id: string) => void; ontogglelocked?: (id: string) => void; /** Sibling reorder within a parent (bottom-first / document z order). */ onreorder?: (orderedIds: string[], parentId: string | null) => void; /** Drop onto a container to reparent. */ onreparent?: (layerId: string, newParentId: string | null) => void; /** Drop a catalog element onto a layer (nested if container). */ ondropelement?: (payload: { def: CanvasElementDef; parentId: string | null; }) => void; /** Edit a User Widget blueprint (layer id of the instance). */ oneditwidget?: (layerId: string) => void; } declare const MediaLayerList: import("svelte").Component; type MediaLayerList = ReturnType; export default MediaLayerList;