export type databaseNames = 'users' | 'chat';
export type possibleDBKeys = string;

export interface databaseConf<props> {
  filePath: string;
  version: number;
  migration?: any;
  getEntry: (key: possibleDBKeys) => Promise<props | null>;
  setEntry: (val: props) => Promise<void>;
  defaultProps: props;
  details: {
    name: databaseNames;
    properties: {[key in keyof props]: string};
    primaryKey: keyof props;
  };
}
