Files
NapCatQQ/.pnpm-store/v3/files/1f/1f9529a8ea2d05ef6fbc1b6744cb9a50100b38395009c86a6c1deb771cc883c00e2a1838565099e78873496c31a1ec1de33b4d1a09467b550316636a31e87f
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

20 lines
1021 B
Plaintext

import { StringReplacer } from '../interfaces';
declare class ImportPathResolver {
source: string;
readonly sourcePath: string;
constructor(source: string, sourcePath: string);
get sourceDir(): string;
replaceSourceImportPaths(replacer: StringReplacer): this;
resolveFullImportPaths(ext?: string): this;
private resolveFullPath;
static newStringRegex(): RegExp;
static newImportStatementRegex(flags?: string): RegExp;
static resolveFullImportPaths(code: string, path: string, ext?: string): string;
static replaceSourceImportPaths(code: string, path: string, replacer: StringReplacer): string;
}
export declare const resolveFullImportPaths: typeof ImportPathResolver.resolveFullImportPaths;
export declare const newImportStatementRegex: typeof ImportPathResolver.newImportStatementRegex;
export declare const replaceSourceImportPaths: typeof ImportPathResolver.replaceSourceImportPaths;
export declare const newStringRegex: typeof ImportPathResolver.newStringRegex;
export {};