/**
 * @license
 * Copyright 2026 Amodal Labs, Inc.
 * SPDX-License-Identifier: MIT
 */
/**
 * Base error class for all Studio errors.
 * Follows the same pattern as AmodalError in the runtime package.
 */
export declare class StudioError extends Error {
    readonly code: string;
    readonly statusCode: number;
    readonly context: Record<string, unknown>;
    constructor(code: string, message: string, statusCode: number, context?: Record<string, unknown>, cause?: unknown);
    toJSON(): Record<string, unknown>;
}
/**
 * Error from the draft storage backend (Postgres).
 */
export declare class StudioStorageError extends StudioError {
    readonly operation: string;
    constructor(message: string, options: {
        operation: string;
        cause?: unknown;
        context?: Record<string, unknown>;
    });
}
/**
 * Error during the publish operation (writing to disk or committing via GitHub).
 */
export declare class StudioPublishError extends StudioError {
    constructor(message: string, options?: {
        cause?: unknown;
        context?: Record<string, unknown>;
    });
}
/**
 * Error when a draft file path fails validation.
 */
export declare class StudioPathError extends StudioError {
    readonly filePath: string;
    constructor(message: string, options: {
        filePath: string;
    });
}
export declare class StudioValidationError extends StudioError {
    constructor(message: string, context?: Record<string, unknown>);
}
export declare class StudioNotFoundError extends StudioError {
    constructor(resource: string, message?: string);
}
/**
 * Error when a feature is not available in the current environment.
 * Maps to HTTP 501 Not Implemented.
 */
export declare class StudioFeatureUnavailableError extends StudioError {
    readonly feature: string;
    constructor(feature: string, message?: string);
}
