2026-04-12 12:29:13 +02:00
|
|
|
import type {
|
|
|
|
|
AppCommandShortcutEventInit,
|
|
|
|
|
AppCommandShortcutEventOptions,
|
|
|
|
|
} from '../hooks/appCommandCatalog'
|
|
|
|
|
|
|
|
|
|
export interface LaputaTestBridge {
|
2026-04-24 15:06:13 +09:00
|
|
|
activeTabPath?: string | null
|
2026-04-12 12:29:13 +02:00
|
|
|
dispatchAppCommand?: (id: string) => void
|
2026-05-27 14:36:36 +02:00
|
|
|
openDeepLink?: (url: string) => void
|
2026-04-12 12:29:13 +02:00
|
|
|
dispatchShortcutEvent?: (init: AppCommandShortcutEventInit) => void
|
|
|
|
|
dispatchBrowserMenuCommand?: (id: string) => void
|
|
|
|
|
triggerMenuCommand?: (id: string) => Promise<unknown>
|
|
|
|
|
triggerShortcutCommand?: (id: string, options?: AppCommandShortcutEventOptions) => void
|
|
|
|
|
seedBlockNoteTable?: (columnWidths?: Array<number | null>) => Promise<void> | void
|
2026-04-16 23:38:30 +02:00
|
|
|
seedAutoGitSavedChange?: () => Promise<void> | void
|
2026-04-12 12:29:13 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
declare global {
|
|
|
|
|
interface Window {
|
|
|
|
|
__laputaTest?: LaputaTestBridge
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export {}
|