import { Deck } from "./models/Deck"; /** * We need to do some actions which can be quite intensive if constantly going back and forth * between AnkiConnect and here. So our state basically acts as a cache */ declare class AnkiState { private decks; private deckExists; /** * Convert the deck ID into a deck name. * `null` is returned if ID cannot be found */ getDeckNameFromId(id: number): string | null; /** * Convert the deck name into an ID * `null` is returned if name cannot be found */ getDeckIDFromName(name: string): number | null; getDeckFromName(name: string): Deck | null; /** * Decks are only added if id exists as a property * @param decks Decks to add */ addDecks(decks: Deck[]): void; } export declare const initState: () => void; export declare const getAnkiState: () => AnkiState; export {};