anki-reader
Version:
A library for reading Anki apkg and collection files.
25 lines (24 loc) • 768 B
TypeScript
import { type Model, type IModelTemplate } from './Model.js';
export interface IFormattedString {
rawValue: string;
formattedString: string;
latexFormattedString: string;
}
export declare class Question {
private readonly questionString;
private readonly answerString;
private readonly template;
private readonly model;
private question?;
private answer?;
constructor(fields: Record<string, string>, template: IModelTemplate, model: Model);
private buildFormattedString;
getLatexPre(): string;
getLatexPost(): string;
getCss(): string;
getQuestion(): IFormattedString;
getAnswer(): IFormattedString;
getQuestionString(): string;
getAnswerString(): string;
getRawTemplate(): IModelTemplate;
}