// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
import {entities} from '../models';
import {ipc} from '../models';

export function CreateNewProject(arg1:string):Promise<entities.Session>;

export function GetAllLocalProjects():Promise<Array<entities.Project>>;

export function GetAreaById(arg1:string):Promise<entities.Area>;

export function GetCurrentSession():Promise<entities.Session>;

export function GetCurrentUser():Promise<entities.User>;

export function GetDocumentById(arg1:string):Promise<entities.Document>;

export function GetDocuments():Promise<ipc.GetDocumentsResponse>;

export function GetProcessedAreasByDocumentId(arg1:string):Promise<Array<entities.ProcessedArea>>;

export function GetProjectByName(arg1:string):Promise<entities.Project>;

export function GetSupportedLanguages():Promise<Array<entities.Language>>;

export function GetUserMarkdownByDocumentId(arg1:string):Promise<entities.UserMarkdown>;

export function RequestAddArea(arg1:string,arg2:entities.Area):Promise<entities.Area>;

export function RequestAddDocument(arg1:string,arg2:string):Promise<entities.Document>;

export function RequestAddDocumentGroup(arg1:string):Promise<entities.Group>;

export function RequestAddProcessedArea(arg1:entities.ProcessedArea):Promise<entities.ProcessedArea>;

export function RequestChangeAreaOrder(arg1:string,arg2:number):Promise<entities.Document>;

export function RequestChangeGroupOrder(arg1:string,arg2:number):Promise<entities.Group>;

export function RequestChangeSessionProjectByName(arg1:string):Promise<boolean>;

export function RequestChooseUserAvatar():Promise<string>;

export function RequestDeleteAreaById(arg1:string):Promise<boolean>;

export function RequestDeleteDocumentAndChildren(arg1:string):Promise<boolean>;

export function RequestSaveDocumentCollection():Promise<boolean>;

export function RequestSaveGroupCollection():Promise<boolean>;

export function RequestSaveLocalUserProcessedMarkdownCollection():Promise<boolean>;

export function RequestSaveProcessedTextCollection():Promise<boolean>;

export function RequestUpdateArea(arg1:entities.Area):Promise<entities.Area>;

export function RequestUpdateCurrentUser(arg1:entities.User):Promise<entities.User>;

export function RequestUpdateDocument(arg1:entities.Document):Promise<entities.Document>;

export function RequestUpdateDocumentUserMarkdown(arg1:string,arg2:string):Promise<entities.UserMarkdown>;

export function RequestUpdateProcessedWordById(arg1:string,arg2:string):Promise<boolean>;
