declare class CliError extends Error {
    exitCode: number;
    constructor(message: string, exitCode?: number);
}
export declare class ValidationError extends CliError {
    constructor(message: string);
}
export declare class ApiError extends CliError {
    status?: number | undefined;
    code?: string | undefined;
    constructor(message: string, status?: number | undefined, code?: string | undefined);
}
/**
 * Parse `raw` as a JSON object, throwing {@link ValidationError} when it is not
 * valid JSON or not a top-level object (arrays and primitives are rejected).
 * `label` names the source for the error messages, e.g. `"on stdin"` or
 * `` `in ${path}` ``.
 */
export declare function parseJsonObject(raw: string, label: string): Record<string, unknown>;
export {};
//# sourceMappingURL=errors.d.ts.map