import { ReactNode } from 'react'; declare class CommentFormSubmitError extends Error { private error; constructor(error: ReactNode); render(): ReactNode; } declare class InvalidCommentError extends CommentFormSubmitError { constructor(errors: Record); } declare class RateLimitedError extends CommentFormSubmitError { constructor(message?: string); } declare class CommentContentTooLargeError extends CommentFormSubmitError { constructor(message?: string); } /** * Throws an error based on the known response status codes * if the code is not known, it will not throw an error * * @param response - The response to throw an error for */ declare const throwKnownResponseCodeError: (response: Response) => Promise; export { CommentContentTooLargeError, CommentFormSubmitError, InvalidCommentError, RateLimitedError, throwKnownResponseCodeError };