// Generated by dts-bundle v0.7.3 // Dependencies for this module: // ../../../react import * as React from 'react'; export interface IAIAssistantProps { environment: IEnvironment; tenant: string; highlightColor: string; sites: IContentOrganizerCreate[]; contentLanguage: string; fontSlots?: IFontSlots; title?: string; showTitle?: boolean; infoText?: string; infoIconUrl?: string; infoHeadline?: string; example?: string; onClose?: () => void; } export interface IAIAssistantState { isLoadingAIResponse: boolean; query: string; aiResponse: ContentOrganizerAIResponse; } export class AIAssistant extends React.Component { constructor(props: IAIAssistantProps); componentDidMount(): void; render(): JSX.Element; } export declare type IEnvironment = "Development" | "Test" | "Production"; export interface ContentOrganizerAIResponse { chatReply: string; searchKeyWords: string[]; pageContents: { path: string; textContent: string; title?: string; isIncludedInKnowledgebase: boolean; }[]; usage: { completionTokens: number; promptTokens: number; totalTokens: number; calculatedTokens: number; }; } export default class ContentOrganizerAIService { static getAIResponse(environment: IEnvironment, tenant: string, contentLanguage: string, sites: string[], query: string): Promise; static getSites(tenant: string, token: string, environment: IEnvironment, searchQuery: string, take?: number, skip?: number): Promise<{ searchQuery: string; totalItems: number; items: IContentOrganizerSharepointSite[]; }>; } export interface IFontSlots { title: { fontFamily: string; }; heading: { fontFamily: string; }; body: { fontFamily: string; }; label: { fontFamily: string; }; } export interface IContentOrganizer { settings: IContentOrganizerCreate; durableFunctionOutput?: IContentOrganizerDurableFunctionOutput; } export interface IContentOrganizerCreate { siteCollection?: string; title?: string; description?: string; siteLanguage?: string; template?: string; siteOwnersWithGroups?: IUser[]; timeZoneId?: number; enablePushNotifications?: boolean; metadata?: IContentOrganizerCreateMetadata; revision?: IContentOrganizerCreateRevision; responsible?: IContentOrganizerCreateResponsible; permissions?: IcontentOrganizerSitePermissions; elements?: IContentOrganizerPageElements; navigator?: IContentOrganizerNavigator; hubSite?: IContentOrganizerHubSite; featuredImageUrl?: string; featuredImageCropSettings?: IContentOrganizerImageCropSettings; documentLibraries?: IDocumentLibrary[]; } export interface IContentOrganizerCreateMetadata { isFeatureSelected: boolean; required: boolean; termSetId: string; } export interface IContentOrganizerCreateRevision { isFeatureSelected: boolean; required: boolean; daysBeforeRevisionIsRequired: number; } export interface IContentOrganizerCreateResponsible { isFeatureSelected: boolean; required: boolean; } export interface IContentOrganizerPageElements { sharepointPage: boolean; } export interface IContentOrganizerPageContentApproval { required: boolean; personOrGroupLoginNames: string[]; } export interface IcontentOrganizerSitePermissions { isFeatureSelected: boolean; initialPermissions: any[]; } export interface IContentOrganizerHubSite { isFeatureSelected: boolean; id: string; title: string; } export interface IContentOrganizerNavigator { isFeatureSelected: boolean; instance?: { id: number; title: string; instanceName: string; hideHubMenu: boolean; hideLocalMenu: boolean; }; } export interface IContentOrganizerDurableFunctionOutput { errors: { [key: string]: IContentOrganizerActivityError[]; }; } export interface IContentOrganizerActivityError { message: string; isDiscarded: boolean; } export interface IContentOrganizerImageCropSettings { x: number; y: number; width: number; height: number; } export interface ISharePointSiteInformation { navigatorInstanceId?: number; associatedHubSiteName?: string; language?: string; isContentOrganizerInstance?: boolean; } export interface IContentOrganizerSharepointSite { title: string; path: string; } export interface IDocumentLibrary { title: string; url: string; } export interface IDocumentLibraryOption extends IDocumentLibrary { selected: boolean; } export interface IUser { displayName?: string; userPrincipalName?: string; jobTitle?: string; image?: string; id?: string; userName?: string; title?: string; name?: string; email?: string; photo?: string; loginName?: string; }