import { Article } from '@annuadvent/ngx-cms/article'; import { UtilsService } from '@annuadvent/ngx-core/utils'; import { EditorElement } from '@annuadvent/ngx-cms/content-editor'; import { AppConfigService } from '@annuadvent/ngx-core/app-config'; import { OpenaiConfigService, OpenaiService } from '@annuadvent/ngx-tools/openai'; import { Html2JsonService } from '@annuadvent/ngx-cms/content-editor'; import { FireAuthService } from '@annuadvent/ngx-tools/fire-auth'; import { BehaviorSubject, Observable } from 'rxjs'; import * as i0 from "@angular/core"; export declare class ArticleEditorService { private utilsService; private openaiService; private openaiConfigService; private html2JsonService; private appConfigService; private fireAuthService; article$: BehaviorSubject
; cleanupPhrases: string; constructor(utilsService: UtilsService, openaiService: OpenaiService, openaiConfigService: OpenaiConfigService, html2JsonService: Html2JsonService, appConfigService: AppConfigService, fireAuthService: FireAuthService); get article(): Observable
; createInitializedArticle(articleTitle: string): Article; generateArticleFromOpenai(articleTitle: string, keyWordsPromptPrefix: string, descriptionPromptPrefix: string, contentPromptPrefix: string): Promise
; generateArticleDescriptionFromOpenai(articleTitle: string, descriptionPromptPrefix: string): Promise; generateArticleKeywordsFromOpenai(articleTitle: string, descriptionPromptPrefix: string): Promise>; generateArticleContentFromOpenai(articleTitle: string, contentPromptPrefix: string): Promise; generateArticleBodyFromOpenai(articleSubHeadings: Array, contentPromptPrefix: string): Promise; generateArticleUrl(articleId: string, articleCategories: Array): string; readDescriptionFromEditorElement(el: EditorElement): string; readKeywordsFromEditorElement(el: EditorElement): Array; generateArticleSubheading(subHeadingText: string): EditorElement; generateArticleImageUrl(imageFullPath: string): string; cleanAndFormatEditorEl(jsonEl: EditorElement): EditorElement; /** * Cleans Open ai language keywords and tags with \n only. * @date 6/5/2023 - 12:48:30 AM * * @public * @param {EditorElement} jsonEl * @returns {EditorElement} */ cleanEditorEl(jsonEl: EditorElement): EditorElement; /** * Formats LI items those having an heading within, as strong. * @date 6/5/2023 - 12:55:14 AM * * @public * @param {EditorElement} el * @returns {EditorElement} */ formatEditorElement(el: EditorElement): EditorElement; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }