import { AccessPayload } from "../../auth/types/auth-tokens.js"; import { QuestionsModelOptions } from "./types/questions-model-options.js"; export declare function makeQuestionsModel(options: QuestionsModelOptions): { subscribe: (subscription: import("@chasemoskal/snapstate").Subscription<{ access: AccessPayload; users: import("../../auth/aspects/users/types/user.js").User[]; questions: import("../api/types/questions-and-answers.js").Question[]; boardOps: { [key: string]: import("../../../framework/ops.js").Op; }; postingOp: import("../../../framework/ops.js").Op; }>) => () => void; makeBoardModel: (board: string) => { getPermissions(): { readonly "read questions": boolean; readonly "post questions": boolean; readonly "moderate questions": boolean; readonly "answer questions": boolean; readonly "like questions": boolean; readonly "report questions": boolean; }; getBoardName(): string; getAccess(): AccessPayload; getBoardOp(): import("../../../framework/ops.js").Op; getPostingOp(): import("../../../framework/ops.js").Op; getQuestions(): { answers: import("../api/types/questions-and-answers.js").Answer[]; questionId: string; authorUserId: string; board: string; content: string; archive: boolean; timePosted: number; liked: boolean; likes: number; reports: number; reported: boolean; }[]; getUser(userId: string): import("../../auth/aspects/users/types/user.js").User; loadQuestions(): Promise; postQuestion({ content }: { content: string; }): Promise; postAnswer(questionId: string, answerDraft: import("../api/types/answer-draft.js").AnswerDraft): Promise; likeQuestion(questionId: string, like: boolean): Promise; likeAnswer(questionId: string, answerId: string, like: boolean): Promise; reportQuestion(questionId: string, report: boolean): Promise; reportAnswer(questionId: string, answerId: string, report: boolean): Promise; archiveQuestion(questionId: string, archive: boolean): Promise; archiveAnswer(questionId: string, answerId: string, archive: boolean): Promise; archiveBoard(): Promise; }; accessChange: (access: AccessPayload) => void; };