/** * formatDirectoryListing — permissive directory listing for batch file ops. * * Replaces EISDIR errors. When any file op (read/edit/patch) is called on a * directory, this helper produces a clean, agent-parseable listing instead * of throwing. * * Format: * 📁 / (N entries[, M truncated]) * [D] dirname/ * [F] filename.ext 12.3 KB * [L] symlink-name -> target * ... M more entries (truncated) * * Sort order: directories first, then files, alphabetical within each. * Hidden files are included in their natural sort position. */ /** * Produce a sorted directory listing for the agent. * * @param displayPath The path the user/agent provided (kept verbatim in the * header so the agent sees the path it asked about). * @param resolvedPath The absolute resolved path used for fs calls. */ export declare function formatDirectoryListing(displayPath: string, resolvedPath: string): Promise; //# sourceMappingURL=format-directory-listing.d.ts.map