import { PendingPostCommentOperationSchemaType } from '../schemas.js'; import { QueryKey } from '@tanstack/react-query'; import '@ecp.eth/sdk/indexer'; import '@ecp.eth/sdk/indexer/schemas'; import 'zod/v3'; import '@ecp.eth/shared-signer/schemas/signer-api/shared'; type OnCommentRetrySubmissionStartParams = { /** * Query key to a query where comment is stored */ queryKey: QueryKey; pendingOperation: PendingPostCommentOperationSchemaType; }; type OnCommentRetrySubmissionSuccessParams = Pick; type OnCommentRetrySubmissionErrorParams = Pick & { error: Error; }; type OnCommentRetrySubmissionStart = (params: OnCommentRetrySubmissionStartParams) => void; type OnCommentRetrySubmissionSuccess = (params: OnCommentRetrySubmissionSuccessParams) => void; type OnCommentRetrySubmissionError = (params: OnCommentRetrySubmissionErrorParams) => void; type CommentRetrySubmissionAPI = { start: OnCommentRetrySubmissionStart; success: OnCommentRetrySubmissionSuccess; error: OnCommentRetrySubmissionError; }; declare function useCommentRetrySubmission(): CommentRetrySubmissionAPI; export { useCommentRetrySubmission };