import { PendingEditCommentOperationSchemaType } from '../schemas.cjs'; 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 OnCommentRetryEditionStartParams = { /** * Query key to a query where comment is stored */ queryKey: QueryKey; pendingOperation: PendingEditCommentOperationSchemaType; }; type OnCommentRetryEditionSuccessParams = Pick; type OnCommentRetryEditionErrorParams = Pick & { error: Error; }; type OnCommentRetryEditionStart = (params: OnCommentRetryEditionStartParams) => void; type OnCommentRetryEditionSuccess = (params: OnCommentRetryEditionSuccessParams) => void; type OnCommentRetryEditionError = (params: OnCommentRetryEditionErrorParams) => void; type CommentRetryEditionAPI = { start: OnCommentRetryEditionStart; success: OnCommentRetryEditionSuccess; error: OnCommentRetryEditionError; }; declare function useCommentRetryEdition(): CommentRetryEditionAPI; export { useCommentRetryEdition };