import type * as attw from "@arethetypeswrong/core" with { "resolution-mode": "import" }; import * as header from "@definitelytyped/header-parser"; import { AllTypeScriptVersion } from "@definitelytyped/typescript-versions"; import { CompilerOptions } from "typescript"; export declare function checkPackageJson(dirPath: string, typesVersions: readonly AllTypeScriptVersion[]): header.Header | string[]; /** * numbers in `CompilerOptions` might be enum values mapped from strings */ export type CompilerOptionsRaw = { [K in keyof CompilerOptions]?: CompilerOptions[K] extends number | undefined ? string | number | undefined : CompilerOptions[K]; }; interface Tsconfig { compilerOptions: CompilerOptionsRaw; files?: string[]; include?: string[]; exclude?: string[]; } export declare function checkTsconfig(config: Tsconfig): string[]; export declare function runAreTheTypesWrong(dirName: string, dirPath: string, implementationPackage: attw.Package, configPath: string, expectError: boolean): Promise<{ warnings: string[]; errors: string[]; }>; export declare function checkNpmVersionAndGetMatchingImplementationPackage(packageJson: header.Header, packageDirectoryNameWithVersion: string): Promise<{ warnings: string[]; errors: string[]; implementationPackage?: attw.Package; }>; export {};