export declare type StatResult = { name: string | undefined; path: string; size: number; mode: number; ctime: number; mtime: number; originalFilepath: string; isFile: () => boolean; isDirectory: () => boolean; }; export interface WizFs { ensureDir(pth: string, options?: any): Promise; copyFile(src: string, dest: string): Promise; copyDir(src: string, dest: string): Promise; copy(src: string, dest: string, options?: { base64: boolean; }): Promise; readFile(filepath: string, encodingOrOptions?: any): Promise; readdir(dirpath: string): Promise; writeFile(dirpath: string, data: any, options?: any): Promise; stat(filepath: string): Promise; exists(filepath: string): Promise; existsSync(filepath: string): boolean; createReadStream?: (path: string, options?: any) => any; } export interface WizApp { getVersion(): string; getPath(name: string): string; getLocale(): string; name: string; doStandardPost?: (options: any) => any; } export interface WizStoreOptions { name: string; } export interface WizStore { new (options?: WizStoreOptions): WizStore; set(key: string, value: string | undefined | null | number | Date | boolean): string; get(key: string): string | undefined | null | number | Date | boolean; delete(key: string): void; } export interface WizAesEncTools { encryptText(text: string, password: string): string; decryptText(text: string, password: string): string; } export interface WizEncTools { aes: WizAesEncTools; } export interface WizWrapperOptions { saveNoteAsMarkdown: boolean; disableCreateDefaultAccount: boolean; downloadResources: boolean; } export interface WizDatabase { new (dbPath: string, callback: (err?: Error) => void): WizDatabase; run(sql: string, values?: any[], callback?: (error: Error, result: any) => void): Promise; all(sql: string, values?: any[], callback?: (error: Error, rows: any[]) => void): Promise; close(callback: (err?: Error) => void): Promise; } export interface WizWrapper { fs: WizFs; app: WizApp; sqlite3: { Database: WizDatabase; }; Store: WizStore; enc: WizEncTools; options: WizWrapperOptions; } declare const wizWrapper: WizWrapper; export default wizWrapper;