mirror of
https://github.com/jarrodwatts/claude-hud.git
synced 2026-04-23 12:12:41 +00:00
24 lines
1.1 KiB
TypeScript
24 lines
1.1 KiB
TypeScript
type ExecFileResult = {
|
|
stdout: string;
|
|
};
|
|
type ExecFileImpl = (file: string, args: string[], options: {
|
|
timeout: number;
|
|
encoding: BufferEncoding;
|
|
}) => Promise<ExecFileResult>;
|
|
type ClaudeBinaryInfo = {
|
|
path: string;
|
|
mtimeMs: number;
|
|
};
|
|
type ClaudeVersionInvocation = {
|
|
file: string;
|
|
args: string[];
|
|
};
|
|
export declare function _parseClaudeCodeVersion(output: string): string | undefined;
|
|
export declare function _getClaudeVersionInvocation(binaryPath: string, platform?: NodeJS.Platform, comspec?: string | undefined): ClaudeVersionInvocation;
|
|
export declare function getClaudeCodeVersion(): Promise<string | undefined>;
|
|
export declare function _resetVersionCache(): void;
|
|
export declare function _setExecFileImplForTests(impl: ExecFileImpl | null): void;
|
|
export declare function _setResolveClaudeBinaryForTests(impl: (() => ClaudeBinaryInfo | null) | null): void;
|
|
export declare function _setVersionInvocationEnvForTests(platformGetter: (() => NodeJS.Platform) | null, comspecGetter: (() => string | undefined) | null): void;
|
|
export {};
|
|
//# sourceMappingURL=version.d.ts.map
|