Files
memecoin-botV2/.pnpm-store/v10/files/18/8f8e3477b30cdeabf5ca332bc24f82a2c3a790a770d1779183b3a3e6cea17ddf586f31e81ef83ec2b320c407a0d60ba3730ea252da9a44198807de7ab7e1d4

28 lines
1.1 KiB
Plaintext

import type { Program } from 'typescript';
import * as ts from 'typescript';
import type { ParseSettings } from '../parseSettings';
export interface ASTAndNoProgram {
ast: ts.SourceFile;
program: null;
}
export interface ASTAndDefiniteProgram {
ast: ts.SourceFile;
program: ts.Program;
}
export type ASTAndProgram = ASTAndDefiniteProgram | ASTAndNoProgram;
export declare const DEFAULT_EXTRA_FILE_EXTENSIONS: Set<string>;
export declare function createDefaultCompilerOptionsFromExtra(parseSettings: ParseSettings): ts.CompilerOptions;
export type CanonicalPath = {
__brand: unknown;
} & string;
export declare function getCanonicalFileName(filePath: string): CanonicalPath;
export declare function ensureAbsolutePath(p: string, tsconfigRootDir: string): string;
export declare function canonicalDirname(p: CanonicalPath): CanonicalPath;
export declare function getAstFromProgram(currentProgram: Program, filePath: string): ASTAndDefiniteProgram | undefined;
/**
* Hash content for compare content.
* @param content hashed contend
* @returns hashed result
*/
export declare function createHash(content: string): string;