import ts from 'typescript'; import { type TypeInfo } from './types.js'; /** * True when a type is iterable (exposes a `[Symbol.iterator]` member) but is not * an array/array-like — e.g. `Set`, `Iterable`, `IterableIterator`, and the * `Set` arm of react-stately's `Selection`. Arrays reach the dedicated array * branch first, and primitives like `string` never reach here, so this only * matches non-array iterables. Without it these fall through to the object * branch and emit a bogus `__@iterator` property ("should be object"). */ export declare function isNonArrayIterable(type: ts.Type): boolean; /** * Analyzes a TypeScript type and returns a structured TypeInfo representation */ export declare function analyzeType({ type, checker, isOptional, visitedTypes, depth, /** * The maximum depth of type analysis. * This is used to avoid infinite recursion. */ maxDepth, }: { type: ts.Type; checker: ts.TypeChecker; isOptional?: boolean; visitedTypes?: Map; depth?: number; maxDepth?: number; }): TypeInfo; //# sourceMappingURL=analyze-type.d.ts.map