import { PropType, Ref } from 'vue'; import { User } from '../../core/types/index.js'; import { CommentModel } from './use-comment.js'; declare const _default: import('vue').DefineComponent; required: true; }; autoFocus: { type: BooleanConstructor; default: boolean; }; parent: { type: PropType; required: false; }; floatingInstanceId: { type: PropType; default: null; }; floatingPageIndex: { type: PropType; default: null; }; floatingPositionEntry: { type: PropType<{ kind?: string; storyKey?: string; pageIndex?: number | null; start?: number; end?: number; bounds?: { top?: number; left?: number; right?: number; bottom?: number; } | null; } | null>; default: null; }; isFloatingInstanceActive: { type: PropType; default: undefined; }; threadComments: { type: PropType; default: null; }; }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { resize: () => any; ready: (payload: { commentId: string | null | undefined; elementRef: Ref; }) => any; "click-outside": () => any; "dialog-exit": () => any; }, string, import('vue').PublicProps, Readonly; required: true; }; autoFocus: { type: BooleanConstructor; default: boolean; }; parent: { type: PropType; required: false; }; floatingInstanceId: { type: PropType; default: null; }; floatingPageIndex: { type: PropType; default: null; }; floatingPositionEntry: { type: PropType<{ kind?: string; storyKey?: string; pageIndex?: number | null; start?: number; end?: number; bounds?: { top?: number; left?: number; right?: number; bottom?: number; } | null; } | null>; default: null; }; isFloatingInstanceActive: { type: PropType; default: undefined; }; threadComments: { type: PropType; default: null; }; }>> & Readonly<{ onResize?: (() => any) | undefined; onReady?: ((payload: { commentId: string | null | undefined; elementRef: Ref; }) => any) | undefined; "onClick-outside"?: (() => any) | undefined; "onDialog-exit"?: (() => any) | undefined; }>, { autoFocus: boolean; floatingInstanceId: string | null; floatingPageIndex: number | null; floatingPositionEntry: { kind?: string; storyKey?: string; pageIndex?: number | null; start?: number; end?: number; bounds?: { top?: number; left?: number; right?: number; bottom?: number; } | null; } | null; isFloatingInstanceActive: boolean | undefined; threadComments: { uid: string | undefined; commentId: string; importedId: string | null | undefined; parentCommentId: string | null | undefined; trackedChangeParentId: string | null | undefined; trackedChangeThreadParentId: string | null | undefined; trackedChangeSide: string | null | undefined; fileId: string | null | undefined; fileType: string | null | undefined; mentions: { name?: string | null | undefined; email?: string | null | undefined; }[]; commentElement: HTMLElement | null; isFocused: boolean; creatorId: string | null; creatorEmail: string | null; creatorName: string | null; creatorImage: string | null; createdTime: number; isInternal: boolean; commentText: string; selection: { documentId: unknown; page: number | undefined; selectionBounds: { top?: number | undefined; left?: number | undefined; right?: number | undefined; bottom?: number | undefined; }; getValues: () => { documentId: unknown; page: number | undefined; selectionBounds: { top?: number; left?: number; right?: number; bottom?: number; }; source: string | null | undefined; }; getContainerId: () => string; getContainerLocation: (parentContainer: Pick | null | undefined) => { top: number; left: number; }; source: string | null | undefined; }; floatingPosition: { top?: number | undefined; left?: number | undefined; right?: number | undefined; bottom?: number | undefined; }; trackedChange: boolean | undefined; deletedText: string | null; trackedChangeType: string | null; trackedChangeText: string | null; trackedChangeDisplayType: string | null; semanticColorKey: string | null; semanticColor: string | null; trackedChangeStory: import('../../public/index.js').StoryLocator | null; trackedChangeStoryKind: string | null; trackedChangeStoryLabel: string; trackedChangeAnchorKey: string | null; trackedChangeCanonicalId: string | null; trackedChangePositionAliases: string[]; trackedChangeDecision: ("accept" | "reject") | null; trackedChangeLabel: string | null; trackedChangeDetailLines: { excerpt: string; label: string; }[] | null; trackedChangeImagePreview: { src: string; contentType: string; role: "deleted" | "inserted" | "before" | "after"; partUri?: string | undefined; relationshipId?: string | undefined; width?: number | undefined; height?: number | undefined; alt?: string | undefined; } | null; customAttributes: readonly { name: string; namespaceUri: string; localName: string; value: string; }[] | null; resolvedTime: number | null; resolvedById: string | null; resolvedByEmail: string | null | undefined; resolvedByName: string | null | undefined; importedAuthor: { name?: string | null | undefined; email?: string | null | undefined; } | null; docxCommentJSON: {} | null; origin: "word" | "google-docs" | "unknown" | undefined; threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined; threadingStyleOverride: import('../../../../../shared/common/comments-types.js').CommentThreadingStyle | undefined; threadingParentCommentId: string | null | undefined; originalXmlStructure: { hasCommentsExtended: boolean; hasCommentsExtensible: boolean; hasCommentsIds: boolean; } | undefined; setText: ({ text, superdoc, suppressUpdate }: { text: string; superdoc?: { emit: (event: "comments-update", payload: { type: import('../../../../../shared/common/event-types.js').CommentEvent; changes?: { key: string; value: unknown; previousValue?: unknown; }[]; comment: unknown; }) => unknown; commentsStore?: { getConfig?: { readOnly?: boolean; }; }; config?: { modules?: import('../../public/index.js').Modules; }; }; suppressUpdate: true; } | { text: string; superdoc: { emit: (event: "comments-update", payload: { type: import('../../../../../shared/common/event-types.js').CommentEvent; changes?: { key: string; value: unknown; previousValue?: unknown; }[]; comment: unknown; }) => unknown; commentsStore?: { getConfig?: { readOnly?: boolean; }; }; config?: { modules?: import('../../public/index.js').Modules; }; }; suppressUpdate?: false; }) => { ok: false; reason: "read-only-document"; } | undefined; getValues: () => { uid: string | undefined; commentId: string | undefined; importedId: string | null | undefined; parentCommentId: string | null | undefined; trackedChangeParentId: string | null | undefined; trackedChangeThreadParentId: string | null | undefined; trackedChangeSide: string | null | undefined; fileId: string | null | undefined; fileType: string | null | undefined; mentions: { name: string | null | undefined; email?: string | null | undefined; }[]; createdAtVersionNumber: number | null | undefined; creatorId: string | null; creatorEmail: string | null; creatorName: string | null; creatorImage: string | null; createdTime: number; importedAuthor: { name?: string | null | undefined; email?: string | null | undefined; } | null; docxCommentJSON: {} | null; isInternal: boolean; commentText: string; selection: { documentId: unknown; page: number | undefined; selectionBounds: { top?: number; left?: number; right?: number; bottom?: number; }; source: string | null | undefined; } | null; trackedChange: boolean | undefined; trackedChangeText: string | null; trackedChangeType: string | null; trackedChangeDisplayType: string | null; semanticColorKey: string | null; semanticColor: string | null; trackedChangeStory: import('../../public/index.js').StoryLocator | null; trackedChangeStoryKind: string | null; trackedChangeStoryLabel: string; trackedChangeAnchorKey: string | null; trackedChangeCanonicalId: string | null; trackedChangePositionAliases: string[]; trackedChangeDecision: ("accept" | "reject") | null; trackedChangeLabel: string | null; trackedChangeDetailLines: { excerpt: string; label: string; }[] | null; trackedChangeImagePreview: { src: string; contentType: string; role: "deleted" | "inserted" | "before" | "after"; partUri?: string | undefined; relationshipId?: string | undefined; width?: number | undefined; height?: number | undefined; alt?: string | undefined; } | null; customAttributes: readonly { name: string; namespaceUri: string; localName: string; value: string; }[] | null; deletedText: string | null; resolvedTime: number | null; resolvedById: string | null; resolvedByEmail: string | null | undefined; resolvedByName: string | null | undefined; origin: "word" | "google-docs" | "unknown" | undefined; threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined; threadingStyleOverride: import('../../../../../shared/common/comments-types.js').CommentThreadingStyle | undefined; threadingParentCommentId: string | null | undefined; originalXmlStructure: { hasCommentsExtended: boolean; hasCommentsExtensible: boolean; hasCommentsIds: boolean; } | undefined; }; resolveComment: ({ id, email, name, superdoc, decision, reconciliationToken, }: { id?: string | null; email?: string | null; name?: string | null; superdoc: { emit: (event: "comments-update", payload: { type: import('../../../../../shared/common/event-types.js').CommentEvent; changes?: { key: string; value: unknown; previousValue?: unknown; }[]; comment: unknown; }) => unknown; commentsStore?: { getConfig?: { readOnly?: boolean; }; }; config?: { modules?: import('../../public/index.js').Modules; }; }; decision?: "accept" | "reject"; reconciliationToken?: symbol; }) => { ok: false; reason: "read-only-document"; } | undefined; setIsInternal: ({ isInternal: newIsInternal, superdoc, }: { isInternal: boolean; superdoc: { emit: (event: "comments-update", payload: { type: import('../../../../../shared/common/event-types.js').CommentEvent; changes?: { key: string; value: unknown; previousValue?: unknown; }[]; comment: unknown; }) => unknown; commentsStore?: { getConfig?: { readOnly?: boolean; }; }; config?: { modules?: import('../../public/index.js').Modules; }; }; }) => { ok: false; reason: "read-only-document"; } | undefined; updatePosition: (coords: { top: number; left: number; right: number; bottom: number; }, parentElement: Pick) => void; getCommentUser: () => { name: string; email: string | null | undefined; id?: undefined; image?: undefined; } | { id: string | null; name: string | null; email: string | null; image: string | null; }; updateIdentityValues: (updates?: { commentId?: string; importedId?: string | null; parentCommentId?: string | null; trackedChangeParentId?: string | null; trackedChangeThreadParentId?: string | null; threadingParentCommentId?: string | null; }) => void; }[] | null; }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, { commentDialogElement: HTMLDivElement; commentInput: import('vue').CreateComponentPublicInstanceWithMixins; required: false; default: () => never[]; }; config: { type: PropType<{ readOnly?: boolean; allowResolve?: boolean; }>; required: true; }; isFocused: { type: BooleanConstructor; default: boolean; }; includeHeader: { type: BooleanConstructor; default: boolean; }; comment: { type: PropType; required: true; }; }>> & Readonly<{ onFocus?: ((...args: any[]) => any) | undefined; }>, { focus: (options?: FocusOptions) => void; }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { focus: (...args: any[]) => void; }, import('vue').PublicProps, { isFocused: boolean; users: readonly (User & { access?: string | { role?: string; } | null; })[]; includeHeader: boolean; }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, { inputRef: HTMLTextAreaElement; }, HTMLDivElement, import('vue').ComponentProvideOptions, { P: {}; B: {}; D: {}; C: {}; M: {}; Defaults: {}; }, Readonly; required: false; default: () => never[]; }; config: { type: PropType<{ readOnly?: boolean; allowResolve?: boolean; }>; required: true; }; isFocused: { type: BooleanConstructor; default: boolean; }; includeHeader: { type: BooleanConstructor; default: boolean; }; comment: { type: PropType; required: true; }; }>> & Readonly<{ onFocus?: ((...args: any[]) => any) | undefined; }>, { focus: (options?: FocusOptions) => void; }, {}, {}, {}, { isFocused: boolean; users: readonly (User & { access?: string | { role?: string; } | null; })[]; includeHeader: boolean; }> | null; }, HTMLDivElement>; export default _default;