/**
 * Workspace Errors
 *
 * Error classes for workspace operations.
 */
import type { WorkspaceStatus } from './types.js';
export declare class WorkspaceError extends Error {
    readonly code: string;
    readonly workspaceId?: string | undefined;
    constructor(message: string, code: string, workspaceId?: string | undefined);
}
export declare class WorkspaceNotAvailableError extends WorkspaceError {
    constructor();
}
export declare class FilesystemNotAvailableError extends WorkspaceError {
    constructor();
}
export declare class SandboxNotAvailableError extends WorkspaceError {
    constructor(message?: string);
}
export declare class SandboxFeatureNotSupportedError extends WorkspaceError {
    constructor(feature: 'executeCommand' | 'installPackage' | 'processes');
}
export declare class SearchNotAvailableError extends WorkspaceError {
    constructor();
}
export declare class WorkspaceNotReadyError extends WorkspaceError {
    constructor(workspaceId: string, status: WorkspaceStatus);
}
export declare class WorkspaceReadOnlyError extends WorkspaceError {
    constructor(operation: string);
}
export declare class FilesystemError extends Error {
    readonly code: string;
    readonly path: string;
    constructor(message: string, code: string, path: string);
}
export declare class FileNotFoundError extends FilesystemError {
    constructor(path: string);
}
export declare class DirectoryNotFoundError extends FilesystemError {
    constructor(path: string);
}
export declare class FileExistsError extends FilesystemError {
    constructor(path: string);
}
export declare class IsDirectoryError extends FilesystemError {
    constructor(path: string);
}
export declare class NotDirectoryError extends FilesystemError {
    constructor(path: string);
}
export declare class DirectoryNotEmptyError extends FilesystemError {
    constructor(path: string);
}
export declare class PermissionError extends FilesystemError {
    readonly operation: string;
    constructor(path: string, operation: string);
}
export declare class FileReadRequiredError extends FilesystemError {
    constructor(path: string, reason: string);
}
export declare class StaleFileError extends FilesystemError {
    readonly expectedMtime: Date;
    readonly actualMtime: Date;
    constructor(path: string, expectedMtime: Date, actualMtime: Date);
}
/**
 * Error thrown when a filesystem operation is attempted before initialization.
 */
export declare class FilesystemNotReadyError extends FilesystemError {
    constructor(id: string);
}
//# sourceMappingURL=errors.d.ts.map