knip
Version:
Find and fix unused dependencies, exports and files in your TypeScript and JavaScript projects
12 lines (11 loc) • 973 B
TypeScript
import type { ParseResult, Program } from 'oxc-parser';
export declare const getImportMap: (program: Program) => Map<string, string>;
export declare const getDefaultImportName: (importMap: Map<string, string>, specifier: string) => string | undefined;
export declare const getPropertyValues: (node: any, propertyName: string) => Set<string>;
export declare const collectPropertyValues: (program: Program, propertyName: string) => Set<string>;
export declare const findCallArg: (program: Program, fnName: string) => any | undefined;
export declare const findProperty: (node: any, name: string) => any | undefined;
export declare const getStringValues: (node: any) => Set<string>;
export declare const isExternalReExportsOnly: (result: ParseResult) => boolean;
export declare const hasImportSpecifier: (program: Program, modulePath: string, specifierName: string) => boolean;
export declare const collectStringLiterals: (sourceText: string, filePath: string) => Set<string>;