/** Accept server-returned job paths as well as paths relative to WebDAV Sites. */ export { normalizeWebDavPath as webdavPath } from '@salesforce/b2c-tooling-sdk/clients'; import type { Services } from '../../services.js'; export declare const MAX_FILE_BYTES: number; /** * Largest webdav_get text range. Even dense text (~2 bytes per token after JSON escaping) stays well under * Claude Code's default 25,000-token MCP tool output limit. */ export declare const MAX_TEXT_BYTES = 32000; /** Bound range reads even when the response omits or misstates Content-Length. */ export declare function readFileResponse(response: Response, maxBytes: number): Promise; /** See `readWebDavTextRange` in the SDK; errors name the MCP tool to use instead. */ export declare function readTextRange(response: Response, offset: number | undefined, maxBytes: number): Promise; /** * Stream a download of any size to a new file (exclusive create, owner-only) and return its size. * `onChunk` runs per received chunk, e.g. to refresh an idle timeout. A failed download removes the partial file. */ export declare function writeResponseToFile(response: Response, outputPath: string, onChunk?: () => void): Promise; /** * Resolve a local MCP-host path inside the project directory, following symlinks. * For `create`, the parent directory must exist inside the project; the file itself must not exist * (callers open it with the exclusive `wx` flag, which also refuses a symlink at that name). */ export declare function resolveLocalPath(services: Services, pathArg: string, projectDirectory: string | undefined, { create }?: { create?: boolean; }): Promise; export declare function readLocalFile(path: string): Promise;