interface ErrorLikeObject {
    name: string;
    message: string;
    stack?: string;
}
declare function isErrorLikeObject(obj: unknown): obj is ErrorLikeObject;
declare function extractErrorMessage(error: unknown, includeName?: boolean, includeStack?: boolean): string | null;

export { extractErrorMessage, isErrorLikeObject };
export type { ErrorLikeObject };
