import {html} from 'htm/preact'; import browser from 'webextension-polyfill'; // TypeScript fix to make it see this file as a module. export {}; type HollloQueue = { clearHistory: () => Promise; dumpBackup: () => Promise; dumpSettings: () => Promise; }; declare global { interface Window { HollloQueue: HollloQueue; } } export namespace Queue { type Component = ReturnType; type Item = { added: Date; id: number; text?: string; url: string; }; type Manifest = {nodeEnv?: string} & browser.Manifest.ManifestBase; type Message = { action: MessageAction; data: T; }; type MessageAction = 'queue open url' | 'queue update badge'; type Migration = { date: Date; upgrade: (previous: Record) => Record; version: string; }; }