import { History } from "./tools"; export interface Meta { version: string; createdAt: string; updatedAt: string; } export interface Query { git: { base: { ref: string; }; revList?: string[]; }; } export interface InitialParams { filename: string; query: Query; } export interface Option { /** default: true, JSON.stringify option */ minimize: boolean; } export interface Type { update: () => string | undefined; addSnapshot: (newHistory: History.Type) => void; getHistories: (query: Query) => History.Type[]; /** * Using base branch reference */ getLatestHistory: (query: Query) => History.Type | undefined; } export declare const create: ({ filename }: InitialParams, option?: Option) => Type;