import type { KnowledgeBaseArticle, CreateKnowledgeBaseArticleInput, UpdateKnowledgeBaseArticleInput } from '../../generated/global-types'; import type { KnowledgeBaseArticleState } from '../store/supportStore'; export type { CreateKnowledgeBaseArticleInput, UpdateKnowledgeBaseArticleInput }; export declare function useKnowledgeBaseOperations(articleSlug?: string): { articles: KnowledgeBaseArticle[]; popularArticles: KnowledgeBaseArticle[]; categories: any; searchResults: KnowledgeBaseArticleState[]; articleDetail: any; totalArticles: any; totalResults: any; hasMoreArticles: any; hasMoreResults: boolean; articlesLoading: boolean; popularLoading: boolean; categoriesLoading: boolean; searchLoading: boolean; articleLoading: boolean; ratingArticle: boolean; creatingArticle: boolean; updatingArticle: boolean; deletingArticle: boolean; publishingArticle: boolean; unpublishingArticle: boolean; archivingArticle: boolean; articlesError: import("@apollo/client").ErrorLike | undefined; searchError: import("@apollo/client").ErrorLike | undefined; articleError: import("@apollo/client").ErrorLike | undefined; searchArticles: (query: string, filters?: { categoryId?: string; tags?: string[]; }) => void; filterArticles: (filters?: { categoryId?: string; tags?: string[]; }) => void; loadMoreArticles: () => void; voteArticle: (articleId: string, helpful: boolean) => Promise; recordView: (articleId: string) => Promise; refetchArticles: (variables?: any) => Promise<{ data: any; error?: import("@apollo/client").ErrorLike; }>; refetchArticle: (variables?: any) => Promise<{ data: any; error?: import("@apollo/client").ErrorLike; }>; setSelectedArticle: (article: KnowledgeBaseArticleState | null) => void; createArticle: (input: CreateKnowledgeBaseArticleInput) => Promise; updateArticle: (id: string, input: UpdateKnowledgeBaseArticleInput) => Promise; deleteArticle: (id: string) => Promise; publishArticle: (id: string) => Promise; unpublishArticle: (id: string) => Promise; archiveArticle: (id: string) => Promise; };