import { CommentAnnotation, CommentElement, Location, CommentSelectionChangeData, CommentSidebarCustomActionEventData, CommentAddEventData, CommentUpdateEventData, UnreadCommentsCount, CommentContextProvider } from "@veltdev/types"; import { ComponentConfig, BubbleDataConfig, PinDataConfig, CommentsToolDataConfig, MultiThreadDialogDataConfig, SidebarButtonDataConfig, TextCommentDataConfig, InlineSectionComponentConfig, SidebarComponentConfig } from "../types/primitive-config.types"; export declare function useCommentUtils(): CommentElement | undefined; export declare function useCommentAnnotations(documentId?: string, location?: Location): CommentAnnotation[] | null | undefined; export declare function useUnreadCommentCountByAnnotationId(annotationId: string): UnreadCommentsCount; export declare function useUnreadCommentAnnotationCountOnCurrentDocument(): UnreadCommentsCount; export declare function useUnreadCommentCountOnCurrentDocument(): UnreadCommentsCount; export declare function useUnreadCommentCountByLocationId(locationId: string): UnreadCommentsCount; export declare function useUnreadCommentAnnotationCountByLocationId(locationId: string): UnreadCommentsCount; export declare function useCommentModeState(): boolean | undefined; /** * @legacy Use `useCommentEventCallback('addCommentAnnotation')` event hook instead. */ export declare function useCommentAddHandler(): CommentAddEventData | undefined; /** * @legacy Use `useCommentEventCallback` event hook instead. */ export declare function useCommentUpdateHandler(): CommentUpdateEventData | undefined; export declare function useCommentDialogSidebarClickHandler(): any; export declare function useCommentSelectionChangeHandler(): CommentSelectionChangeData | undefined; export declare function useCommentCopyLinkHandler(): { link: string; } | undefined; export declare function useCommentAnnotationById(config: { annotationId: string; documentId?: string; }): CommentAnnotation | null | undefined; /** * @experimental Subscribe to a comment dialog's live derived state (`ComponentConfig`) for an * annotation — the internal working object powering the dialog (annotation data, appState, * featureState, uiState). Read-only; its shape is unstable and may change between releases. * Pair with primitive children + Release 2 context so a nested component can pass the annotationId. * * ```jsx * function StatusDot({ annotationId }) { * const config = useCommentDialogConfig({ annotationId }); * return ; * } * ``` */ export declare function useCommentDialogConfig(config: { annotationId: string; }): ComponentConfig | null | undefined; /** * @experimental Subscribe to the comment BUBBLE's live derived state (`BubbleDataConfig`) for a * context. Read-only; its shape is unstable and may change between releases. * * ```jsx * const config = useCommentBubbleConfig({ contextId: 'default' }); * ``` */ export declare function useCommentBubbleConfig(config?: { contextId?: string; }): BubbleDataConfig | null | undefined; /** * @experimental Subscribe to the comment PIN's live derived state (`PinDataConfig`) for a context. * Read-only; its shape is unstable and may change between releases. * * ```jsx * const config = useCommentPinConfig({ contextId: 'default' }); * ``` */ export declare function useCommentPinConfig(config?: { contextId?: string; }): PinDataConfig | null | undefined; /** * @experimental Subscribe to the comments TOOL's live derived state (`CommentsToolDataConfig`) for a * context. Read-only; its shape is unstable and may change between releases. * * ```jsx * const config = useCommentsToolConfig({ contextId: 'default' }); * ``` */ export declare function useCommentsToolConfig(config?: { contextId?: string; }): CommentsToolDataConfig | null | undefined; /** * @experimental Subscribe to the MULTI-THREAD dialog's live derived state * (`MultiThreadDialogDataConfig`). Read-only; its shape is unstable and may change between releases. * * ```jsx * const config = useMultiThreadDialogConfig(); * ``` */ export declare function useMultiThreadDialogConfig(config?: { contextId?: string; }): MultiThreadDialogDataConfig | null | undefined; /** * @experimental Subscribe to the SIDEBAR BUTTON's live derived state (`SidebarButtonDataConfig`) for * a context. Read-only; its shape is unstable and may change between releases. * * ```jsx * const config = useSidebarButtonConfig({ contextId: 'default' }); * ``` */ export declare function useSidebarButtonConfig(config?: { contextId?: string; }): SidebarButtonDataConfig | null | undefined; /** * @experimental Subscribe to the TEXT COMMENT surface's live derived state (`TextCommentDataConfig`) * for a context. Read-only; its shape is unstable and may change between releases. * * ```jsx * const config = useTextCommentConfig({ contextId: 'default' }); * ``` */ export declare function useTextCommentConfig(config?: { contextId?: string; }): TextCommentDataConfig | null | undefined; /** * @experimental Subscribe to an INLINE COMMENTS SECTION's live derived state * (`InlineSectionComponentConfig`). Pass the `targetElementId` of the section you want; omit it to * follow the mounted section. Read-only; its shape is unstable and may change between releases. * * ```jsx * const config = useInlineCommentsSectionConfig({ targetElementId: 'doc-1' }); * ``` */ export declare function useInlineCommentsSectionConfig(config?: { targetElementId?: string; }): InlineSectionComponentConfig | null | undefined; /** * @experimental Subscribe to the comment SIDEBAR's live derived state (`SidebarComponentConfig`) — * filters, groups, the rendered annotation list and its UI state. Read-only; its shape is unstable * and may change between releases. * * ```jsx * const config = useCommentSidebarConfig(); * ``` */ export declare function useCommentSidebarConfig(): SidebarComponentConfig | null | undefined; export declare function useCommentSidebarActionButtonClick(): CommentSidebarCustomActionEventData | null; export declare function useCommentSidebarInit(): CommentSidebarCustomActionEventData | null; export declare function useCommentSidebarData(): CommentSidebarCustomActionEventData | null; export declare function useSetContextProvider(): { setContextProvider: (provider: CommentContextProvider) => void; };