anki-reader
Version:
A library for reading Anki apkg and collection files.
17 lines (16 loc) • 436 B
TypeScript
import { type Database } from 'sql.js';
import { Card } from './Card.js';
export declare class Deck {
private readonly id;
private readonly deckJson;
private readonly db;
private cards?;
private name?;
private desc?;
constructor(id: string, deckJson: any, db: Database);
getId(): string;
getCards(): Record<string, Card>;
getName(): string;
getDescription(): string;
getRawDeck(): any;
}