export type WorkspaceBackendErrorCode = "AUTH_FAILED" | "FORBIDDEN" | "NOT_FOUND" | "NETWORK_ERROR" | "RATE_LIMITED" | "CONFLICT" | "UNKNOWN";
export declare class WorkspaceBackendError extends Error {
    readonly code: WorkspaceBackendErrorCode;
    constructor(code: WorkspaceBackendErrorCode, message?: string);
}
export declare function isWorkspaceBackendError(error: unknown): error is WorkspaceBackendError;
export declare function asWorkspaceBackendError(error: unknown): WorkspaceBackendError;
