export interface TreeCollapseOptions { /** 접기 가능한(=자식 있는) 노드 키 — `toggleAll`·`allExpanded` 계산 입력. */ expandableKeys: () => readonly string[]; /** 명시 토글이 없을 때의 기본 접힘 여부. 키의 순수 함수여야 한다. */ defaultCollapsed: (key: string) => boolean; /** sessionStorage 보존 키. 생략 시 보존하지 않음. */ storageKey?: string; /** 보존 슬롯 스코프(다이어그램 id 등). 바뀌면 다른 슬롯을 읽는다. */ scope?: () => string; } export declare function useTreeCollapse(opts: TreeCollapseOptions): { isCollapsed: (key: string) => boolean; toggle: (key: string) => void; toggleAll: () => void; allExpanded: import('vue').ComputedRef; };