import { QueryKey } from '@tanstack/react-query'; import { PendingDeleteCommentOperationSchemaType } from '../schemas.cjs'; import { Hex } from 'viem'; import '@ecp.eth/sdk/indexer'; import '@ecp.eth/sdk/indexer/schemas'; import 'zod/v3'; import '@ecp.eth/shared-signer/schemas/signer-api/shared'; type OnCommentDeletionStartParams = { /** * Query key to a query where comment is stored */ queryKey: QueryKey; pendingOperation: PendingDeleteCommentOperationSchemaType; }; type OnCommentDeletionSuccessParams = Pick; type OnCommentDeletionErrorParams = Pick & { commentId: Hex; error: Error; }; type OnCommentDeletionStart = (params: OnCommentDeletionStartParams) => void; type OnCommentDeletionSuccess = (params: OnCommentDeletionSuccessParams) => void; type OnCommentDeletionError = (params: OnCommentDeletionErrorParams) => void; type CommentDeletionAPI = { start: OnCommentDeletionStart; success: OnCommentDeletionSuccess; error: OnCommentDeletionError; }; declare function useCommentDeletion(): CommentDeletionAPI; export { useCommentDeletion };