/**
 * Python import extraction via tree-sitter AST.
 *
 * Walks `import_statement`, `import_from_statement`, and `if TYPE_CHECKING`
 * blocks to produce a flat list of raw import descriptors. Resolution to
 * file paths is the resolver's job (see python-import-resolver.ts).
 *
 * Because this uses the AST (not regex), string literals and comments
 * cannot produce false positives.
 */
import type Parser from "web-tree-sitter";
export interface PythonImportRef {
    /** Dotted module path (empty string for `from . import X`) */
    module: string;
    /** Number of leading dots on relative imports (0 = absolute) */
    level: number;
    /** True if inside `if TYPE_CHECKING:` block */
    is_type_only: boolean;
    /** True for `from X import *` */
    is_star: boolean;
    /** Original source text for debugging */
    raw: string;
}
/**
 * Extract all Python imports from a parsed tree-sitter tree.
 */
export declare function extractPythonImports(tree: Parser.Tree): PythonImportRef[];
//# sourceMappingURL=python-imports.d.ts.map