import { type RenderHookResult } from "@testing-library/react"; import { type AxiosMockHandle } from "../../test-utils"; import { type CommentSectionContextValues } from "../../context/comment-section-context"; import type { AuthUser } from "../../interfaces/models/User"; export { makeComment, makeEntity } from "../../test-utils"; export interface RenderWithCommentSectionOptions { projectId?: string; user?: AuthUser | null; commentSectionValue?: Partial; beforeRender?: (handles: { axiosPrivate: AxiosMockHandle; axiosPublic: AxiosMockHandle; }) => void; } export interface RenderWithCommentSectionResult extends RenderHookResult { axiosPrivate: AxiosMockHandle; axiosPublic: AxiosMockHandle; } /** * Like `renderHookWithAxios`, but also nests a `CommentSectionContext.Provider` * — needed by hooks (`useReplies`, `useCommentSection`) that read comment-tree * state from that context rather than taking it as a parameter. */ export declare function renderWithCommentSection(callback: () => Result, options?: RenderWithCommentSectionOptions): RenderWithCommentSectionResult;