import * as dbmage from "dbmage"; export declare namespace Database { type NoteBase = { type: NoteType; noteId: dbmage.Id; time: number; to: null | dbmage.Id; from: null | dbmage.Id; title: string; text: string; old: boolean; }; namespace NoteDetails { type Message = {}; type Question = { questionId: dbmage.Id; }; type Any = Message | Question; } } export type NoteBase = UndatabaseIds; export type NoteType = "message" | "question"; export interface Note extends NoteBase { details: UndatabaseIds; } export declare namespace Notes { interface Message extends Note { type: "message"; } interface Question extends Note { type: "question"; } type Any = Message | Question; } export type DraftForNote = Omit; export type UndatabaseIds = { [P in keyof R]: R[P] extends dbmage.Id ? string : R[P]; }; export interface Pagination { offset: number; limit: number; } export interface NotesStats { newCount: number; oldCount: number; } export interface Paging { pageSize: number; pageNumber: number; }