UNPKG

@wonderwhy-er/desktop-commander

Version:

MCP server for terminal operations and file editing

12 lines (11 loc) 861 B
import type { FilePreviewStructuredContent } from '../../../types.js'; import type { RenderPayload } from './model.js'; export declare function getFileExtensionForAnalytics(filePath: string): string; export declare function isPreviewStructuredContent(value: unknown): value is FilePreviewStructuredContent; export declare function buildRenderPayload(meta: FilePreviewStructuredContent, text: string): RenderPayload; export declare function extractToolText(value: unknown): string | undefined; export declare function extractRenderPayload(value: unknown): RenderPayload | undefined; export declare function assertSuccessfulEditBlockResult(result: unknown): void; export declare function isLikelyUrl(filePath: string): boolean; export declare function buildBreadcrumb(filePath: string): string; export declare function countContentLines(content: string): number;