import type { TSESTree } from "@typescript-eslint/types"; import type { AST, SourceCode } from "eslint"; import type estree from "estree"; export type ImportModuleDeclaration = estree.ImportDeclaration & Partial>; export type ExportModuleDeclaration = estree.ExportAllDeclaration & Partial & Pick>; export type ModuleDeclaration = ImportModuleDeclaration | ExportModuleDeclaration; export type ImportSpecifier = estree.ImportSpecifier & Partial>; export type ExportSpecifier = estree.ExportSpecifier & Partial>; export declare function importModules(source: SourceCode): ImportModuleDeclaration[]; export declare function exportModules(source: SourceCode): ExportModuleDeclaration[]; export declare function isTypeImportOrExport(node: ModuleDeclaration | ImportSpecifier | ExportSpecifier): boolean; export declare function extrema(source: readonly T[]): [T, T]; export declare function linesBetween(a: estree.Node | undefined, b: estree.Node | undefined): number; export declare function isComment(value: AST.Token | estree.Comment | estree.Node): value is estree.Comment; export declare function assertLoc(value: { loc?: AST.SourceLocation | null | undefined; } | undefined): AST.SourceLocation; export declare function assertRange(value: { range?: AST.Range | null | undefined; } | undefined): AST.Range; //# sourceMappingURL=ast.d.ts.map