UNPKG

sfcc-dev-mcp

Version:

MCP server for Salesforce B2C Commerce Cloud development assistance including logs, debugging, and development tools

64 lines 1.74 kB
/** * Path Service Interface and Implementation * * Provides an abstraction layer over Node.js path operations * to enable easier testing and better dependency injection. */ /** * Interface for path operations */ export interface IPathService { /** * Join path segments */ join(...paths: string[]): string; /** * Resolve path segments to an absolute path */ resolve(...paths: string[]): string; /** * Get the directory name of a path */ dirname(path: string): string; /** * Get the base name of a path */ basename(path: string, ext?: string): string; /** * Get the extension of a path */ extname(path: string): string; /** * Normalize a path */ normalize(path: string): string; /** * Check if path is absolute */ isAbsolute(path: string): boolean; } /** * Production implementation of path service */ export declare class PathService implements IPathService { join(...paths: string[]): string; resolve(...paths: string[]): string; dirname(filePath: string): string; basename(filePath: string, ext?: string): string; extname(filePath: string): string; normalize(filePath: string): string; isAbsolute(filePath: string): boolean; } /** * Mock implementation for testing */ export declare class MockPathService implements IPathService { join(...paths: string[]): string; resolve(...paths: string[]): string; dirname(filePath: string): string; basename(filePath: string, ext?: string): string; extname(filePath: string): string; normalize(filePath: string): string; isAbsolute(filePath: string): boolean; } //# sourceMappingURL=path-service.d.ts.map