@light-merlin-dark/tok
Version:
Fast token estimation and cost calculation for enterprise LLMs with CLI and MCP support
16 lines • 677 B
TypeScript
export declare enum ErrorCode {
INVALID_ARGUMENT = "INVALID_ARGUMENT",
FILE_NOT_FOUND = "FILE_NOT_FOUND",
PERMISSION_DENIED = "PERMISSION_DENIED",
PROCESSING_ERROR = "PROCESSING_ERROR",
ESTIMATION_ERROR = "ESTIMATION_ERROR",
CONFIGURATION_ERROR = "CONFIGURATION_ERROR"
}
export declare class CommandError extends Error {
code: ErrorCode;
userMessage: string;
details?: Record<string, any>;
constructor(code: ErrorCode, userMessage: string, details?: Record<string, any>);
}
export declare function createCommandError(code: ErrorCode, userMessage: string, details?: Record<string, any>): CommandError;
//# sourceMappingURL=errors.d.ts.map