Files
vibn-api/dist/tools/file-api.d.ts
2026-05-17 12:43:53 -07:00

7 lines
648 B
TypeScript

export declare function readFile(workspaceRoot: string, relPath: string): Promise<unknown>;
export declare function writeFile(workspaceRoot: string, relPath: string, content: string): Promise<unknown>;
export declare function replaceInFile(workspaceRoot: string, relPath: string, oldContent: string, newContent: string): Promise<unknown>;
export declare function listDirectory(workspaceRoot: string, relPath: string): Promise<unknown>;
export declare function findFiles(workspaceRoot: string, pattern: string): Promise<unknown>;
export declare function searchCode(workspaceRoot: string, query: string, fileExtensions?: string[]): Promise<unknown>;