import type { VcTreeNodeType } from '../../types'; /** * Helpers for safely narrowing values that come back from `el-tree`'s * intentionally-loose `any` boundary, or from indexing an object by a * dynamic `keyof T` (which under `Record` returns * `unknown`). * * No type assertions: every narrowing here is a real runtime check or a * type predicate that ESLint's `no-restricted-syntax` rule will allow. */ export declare function asArray(v: unknown): Array; export declare function asTreeKey(v: unknown): string | number; /** * Narrows an opaque value back to the generic node type. We pass * `Array` down to `el-tree` and trust it to round-trip the same * objects in its callbacks; el-tree's signature uses `any`, which we don't * — so this predicate bridges the gap. It only guards against null/non- * object inputs at runtime; the shape itself is the consumer's contract. */ export declare function isTreeNode(v: unknown): v is NodeType;