import { MAX_FILE_BYTES, MAX_SCOPE_BYTES, SAVE_TO_FILE_MAX_BYTES } from "./constants.js"; export { MAX_FILE_BYTES, MAX_SCOPE_BYTES, SAVE_TO_FILE_MAX_BYTES }; export interface WorkspaceFilesScope { scope: "user" | "org"; scopeId: string; } export declare function isScratchWorkspacePath(path: string): boolean; export declare function validatePath(path: string): string | null; export interface WorkspaceFile { id: string; scope: string; scopeId: string; path: string; content: string; contentType: string; sizeBytes: number; createdAt: string; updatedAt: string; } export interface WorkspaceFileMeta { id: string; path: string; contentType: string; sizeBytes: number; createdAt: string; updatedAt: string; } export declare function fileNameFromPath(path: string): string; export interface WorkspaceFileCard { resourceId: string; path: string; name: string; contentType: string; sizeBytes: number; updatedAt: string; } export declare function toWorkspaceFileCard(meta: WorkspaceFileMeta): WorkspaceFileCard; export declare function writeWorkspaceFile(scope: WorkspaceFilesScope, path: string, content: string, contentType?: string, opts?: { maxFileBytes?: number; }): Promise; export declare function appendWorkspaceFile(scope: WorkspaceFilesScope, path: string, text: string, contentType?: string): Promise; export declare function readWorkspaceFile(scope: WorkspaceFilesScope, path: string, opts?: { offset?: number; maxChars?: number; }): Promise; export declare function getWorkspaceFileMeta(scope: WorkspaceFilesScope, path: string): Promise; export declare function listWorkspaceFiles(scope: WorkspaceFilesScope, prefix?: string): Promise; export declare function deleteWorkspaceFile(scope: WorkspaceFilesScope, path: string): Promise; export declare function grepWorkspaceFiles(scope: WorkspaceFilesScope, pattern: string, opts?: { pathPrefix?: string; useRegex?: boolean; maxMatchesPerFile?: number; maxFiles?: number; }): Promise>;