import { Model } from "./manageTemplate"; import { Card } from "./models/Card"; import { Deck } from "./models/Deck"; export declare class AnkiService { private url; private version; constructor(url: string); invoke(action: string, params?: object): Promise; /** Synchronizes the local Anki collections with AnkiWeb. */ syncGui(): Promise; /** * Get Decks populated with just the names and IDs */ deckNamesAndIds(): Promise; getCardInfo(cards: number[]): Promise; /** * Will not overwrite a deck that exists with the same name. */ createDeck(deckName: string): Promise; storeMultipleFiles(files: { filename: string; data: string; }[]): Promise; createModel(model: any): Promise; modelNames(): Promise; modelStyling(modelName: string): Promise; modelNamesAndIds(): Promise<{ [key: string]: number; }>; modelTemplates(modelName: string): Promise; updateModelTemplate(model: Model): Promise; addNotes(cards: Card[]): Promise; updateFields(card: Card): Promise; guiDeckBrowser(): Promise; deleteNotes(notes: number[]): Promise; findCardsDetail(query: string): Promise; findCards(query: string): Promise; isUp(): Promise; } export declare function initAnkiService(ankiServiceUrl: string): void; export declare function getAnkiService(): AnkiService;