import { PendingEditCommentOperationSchemaType } from '../schemas.cjs'; import { QueryKey } from '@tanstack/react-query'; 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 OnCommentEditionStartParams = { /** * Query key to a query where comment is stored */ queryKey: QueryKey; pendingOperation: PendingEditCommentOperationSchemaType; }; type OnCommentEditionSuccessParams = Pick; type OnCommentEditionErrorParams = Pick & { commentId: Hex; error: Error; }; type OnCommentEditionStart = (params: OnCommentEditionStartParams) => void; type OnCommentEditionSuccess = (params: OnCommentEditionSuccessParams) => void; type OnCommentEditionError = (params: OnCommentEditionErrorParams) => void; type CommentEditionAPI = { start: OnCommentEditionStart; success: OnCommentEditionSuccess; error: OnCommentEditionError; }; declare function useCommentEdition(): CommentEditionAPI; export { useCommentEdition };