import { CreateNoteOptions, QueryNotesOptions } from './db/wiz_db'; import { SyncKbOptions } from './sync/sync_kb_task'; import * as utils from './utils'; import * as paths from './common/paths'; import * as request from './common/request'; import * as lockers from './common/lockers'; export * from './common/interface'; declare function i18nInit(resources: any): Promise; declare function getCurrentLang(): string; declare function getAllUsers(): Promise; declare function getUserData(userGuid: string): import("./user/user_data").default | undefined; declare function getLink(userGuid: string, name: string): Promise; declare function signUp(server: string, userId: string, password: string, options?: { mergeLocalAccount?: boolean; noCheckExists?: boolean; autoLogin?: boolean; }): Promise; declare function onlineLogin(server: string, userId: string, password: string, options?: { mergeLocalAccount?: boolean; autoLogin?: boolean; noCheckExists?: boolean; noRetry?: boolean; }): Promise; declare function getUserInfoFromServer(userGuid: string, token: string, options: { with_sns?: boolean; }): Promise; declare function unbindSns(userGuid: string, token: string, options: { st: string; }): Promise; declare function changeAccount(userGuid: string, token: string, options: { password: string; userId: string; newUserId: string; }): Promise; declare function changeUserDisplayName(userGuid: string, token: string, displayName: string): Promise; declare function changeUserMobile(userGuid: string, token: string, mobile: string): Promise; declare function changeUserPassword(userGuid: string, token: string, options: { newPwd: string; oldPwd: string; }): Promise; declare function localLogin(): Promise; declare function logout(userGuid: string): Promise; declare function queryNotes(userGuid: string, kbGuid: string, start: number, count: number, options?: QueryNotesOptions): Promise; declare function getAllTitles(userGuid: string, kbGuid: string): Promise; declare function getNote(userGuid: string, kbGuid: string, noteGuid: string): Promise; declare function getNoteMarkdown(userGuid: string, kbGuid: string, noteGuid: string): Promise; declare function setNoteMarkdown(userGuid: string, kbGuid: string, noteGuid: string, markdown: string): Promise; declare function getBackwardLinkedNotes(userGuid: string, kbGuid: string, title: string): Promise; declare function createNote(userGuid: string, kbGuid: string, note: CreateNoteOptions): Promise; declare function deleteNote(userGuid: string, kbGuid: string, noteGuid: string): Promise; declare function putBackNote(userGuid: string, kbGuid: string, noteGuid: string): Promise; declare function syncKb(userGuid: string, kbGuid: string, options?: SyncKbOptions): Promise; declare function addImageFromData(userGuid: string, kbGuid: string, noteGuid: string, data: any, options: { type?: { ext: string; mime?: string; }; }): Promise; declare function addImageFromUrl(userGuid: string, kbGuid: string, noteGuid: string, url: string): Promise; declare function getSettings(key: string, defaultValue: string | number | Date): string | number | boolean | Date | null | undefined; declare function setSettings(key: string, value: string | number | Date): void; declare function getUserSettings(userGuid: string, key: string, defaultValue: string | number | Date): string | number | boolean | Date | null; declare function setUserSettings(userGuid: string, key: string, value: string | number | Date): void; declare function getAllTags(userGuid: string, kbGuid: string): Promise; declare function setNoteStarred(userGuid: string, kbGuid: string, noteGuid: string, starred: boolean): Promise; declare function hasNotesInTrash(userGuid: string, kbGuid: string): Promise; declare function getUserInfo(userGuid: string): Promise; declare function refreshUserInfo(userGuid: string): Promise; declare function registerListener(userGuid: string, listener: any): void; declare function unregisterListener(listener: string): void; declare function downloadNoteResource(userGuid: string, kbGuid: string, noteGuid: string, resName: string): Promise; declare function emitEvent(userGuid: string, eventName: string, ...args: any[]): void; declare const core: { paths: typeof paths; utils: typeof utils; request: typeof request; lockers: typeof lockers; i18next: import("i18next").i18n; }; export { i18nInit, getCurrentLang, registerListener, unregisterListener, getAllUsers, getUserData, getUserInfo, signUp, onlineLogin, localLogin, logout, queryNotes, getLink, getNote, getNoteMarkdown, setNoteMarkdown, createNote, deleteNote, putBackNote, syncKb, getUserInfoFromServer, unbindSns, changeAccount, changeUserDisplayName, changeUserMobile, changeUserPassword, addImageFromData, addImageFromUrl, getSettings, setSettings, getUserSettings, setUserSettings, getAllTags, setNoteStarred, hasNotesInTrash, refreshUserInfo, downloadNoteResource, emitEvent, getAllTitles, getBackwardLinkedNotes, core, };