import { exec } from "child_process";
import * as fs from "fs";
import { marked } from "marked";
export declare const fileExists: typeof fs.exists.__promisify__;
export declare const readFile: typeof fs.readFile.__promisify__;
export declare const writeFile: typeof fs.writeFile.__promisify__;
export declare const mkdir: typeof fs.mkdir.__promisify__;
export declare const execAsync: typeof exec.__promisify__;
export declare const fileStat: typeof fs.stat.__promisify__;
export declare const wait: typeof import("timers/promises").setTimeout;
export declare const ask: (question: string, options?: string[], history?: any[]) => Promise<string>;
export declare const setOnNewHistoryEntry: (callback: ((entry: string) => void) | undefined) => void;
export declare const Marked: typeof marked;
export declare function dotp(x: any, y: any): any;
export declare function cosineSimilarity(A: any, B: any): number;
export declare function replaceEscapedNewLines(str: string): string;
export declare function escapeNewLines(str: string): string;
export declare function restoreEscapedNewLines(str: string): string;
export declare function splitByNewLines(str: string): string[];
export declare function toUniqueArray<T>(arr: T[]): T[];
export declare function mcpToolName(toolName: string): string;
export declare function takeFirstNWords(str: string, n: number): string;
