/** * GitDocumentDB * Copyright (c) Hidekazu Kubota * * This source code is licensed under the Mozilla Public License Version 2.0 * found in the LICENSE file in the root directory of this source tree. */ import { Logger, TLogLevelName } from 'tslog'; import { SerializeFormatFrontMatter, SerializeFormatJSON } from './serialize_format'; import { TaskQueue } from './task_queue'; import { ColoredLogger, DatabaseCloseOption, DatabaseOpenResult, NormalizedCommit, OpenOptions, RemoteOptions, Schema, SyncResult } from './types'; import { ICollection } from './types_collection'; import { SyncInterface } from './types_sync'; import { Validator } from './validator'; /** * Interface of GitDocumentDB body * * @public */ export interface GitDDBInterface { /*********************************************** * Public properties (readonly) ***********************************************/ serializeFormat: SerializeFormatJSON | SerializeFormatFrontMatter; defaultBranch: string; localDir: string; dbName: string; isOpened: boolean; workingDir: string; dbId: string; tsLogger: Logger; logger: ColoredLogger; schema: Schema; taskQueue: TaskQueue; isClosing: boolean; validator: Validator; rootCollection: ICollection; /*********************************************** * Public properties ***********************************************/ logLevel: TLogLevelName; author: { name: string; email: string; }; committer: { name: string; email: string; }; /*********************************************** * Public methods ***********************************************/ open(options?: OpenOptions): Promise; close(options?: DatabaseCloseOption): Promise; destroy(options: DatabaseCloseOption): Promise<{ ok: true; }>; getRemoteURLs(): string[]; getSync(remoteURL: string): SyncInterface; removeSync(remoteURL: string): void; sync(options: RemoteOptions, getSyncResult: boolean): Promise<[SyncInterface, SyncResult]>; sync(options: RemoteOptions): Promise; getCommit(oid: string): Promise; saveAuthor(): Promise; loadAuthor(): Promise; loadDbInfo(): void; } //# sourceMappingURL=types_gitddb.d.ts.map