export declare class BaseError extends Error { context: string; constructor(message: string, context?: string); toJSON(): { error: string; message: string; context: string; }; } export declare class PatchFormatError extends BaseError { static readonly DEFAULT_MESSAGE = "Invalid line prefix. Valid prefixes within a hunk are '+', '-', ' ', and '\\'"; constructor(context?: string, message?: string); } export declare class HunkHeaderCountMismatchError extends BaseError { static readonly DEFAULT_MESSAGE = "Invalid line prefix. Valid prefixes within a hunk are '+', '-', ' ', and '\\'"; constructor(context?: string, message?: string); } export declare class NotEnoughContextError extends BaseError { static readonly DEFAULT_MESSAGE = "Hunk is missing context to apply patch"; constructor(context?: string, message?: string); } export declare class NoEditsInHunkError extends BaseError { static readonly DEFAULT_MESSAGE = "Could not find any edits in hunk"; constructor(context?: string, message?: string); } export declare class InsufficientContextLinesError extends BaseError { static readonly DEFAULT_MESSAGE = "Insufficient context lines in hunk"; constructor(context: string | undefined, required: number, actual: number); }