Pop-up dictionary browser extension for language learning. Successor to Yomichan. (PERSONAL FORK)
1/*
2 * Copyright (C) 2025 Yomitan Authors
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
16 */
17
18export type termEntriesInput = {
19 term: string;
20};
21
22export type kanjiEntriesInput = {
23 character: string;
24};
25
26export type ankiFieldsInput = {
27 text: string;
28 type: 'term' | 'kanji';
29 markers: [string];
30 maxEntries: number;
31 includeMedia?: boolean;
32};
33
34export type tokenizeInput = {
35 text: string | string[];
36 scanLength: number;
37};
38
39export type remoteVersionResponse = {
40 version: number;
41};
42
43export type apiDictionaryMediaDetails = {
44 dictionary: string;
45 path: string;
46 mediaType: string;
47 width: number;
48 height: number;
49 content: TContentType;
50 ankiFilename: string;
51};
52
53export type apiAudioMediaDetails = {
54 term: string;
55 reading: string;
56 mediaType: string;
57 content: AudioBinaryBase64;
58 ankiFilename: string;
59};