import "reflect-metadata"; import { Connection } from "typeorm"; import DBSubmission from "./entities/db-submission"; import DBComment from "./entities/db-comment"; export declare function makeDB(): Promise; /** Generic type for things that can be Comments or Submissions. */ export declare type DBPost = DBComment | DBSubmission; /** * Simplifies processing Comments & Submissions by splitting the input into the result of either function, * based off its class. * @param post The Comment/Submission to check. * @param comment A callback if this Post is a Comment. * @param submission A callback if this Post is a Submission. */ export declare function forkPost(post: DBPost, comment: (cmm: DBComment) => C, submission: (s: DBSubmission) => S): C | S;