- Move test-only write-count, mock-handle, and saved-open globals under window.openPencil.test - Keep external Tauri and Vite injected globals separate from app-owned browser bridge hooks - Validate check plus autosave and chat E2E coverage
44 lines
1,012 B
TypeScript
44 lines
1,012 B
TypeScript
export {}
|
|
|
|
declare global {
|
|
interface Uint8ArrayConstructor {
|
|
fromBase64(base64: string, options?: { alphabet?: 'base64' | 'base64url' }): Uint8Array
|
|
}
|
|
|
|
interface Uint8Array {
|
|
toBase64(options?: { alphabet?: 'base64' | 'base64url' }): string
|
|
}
|
|
|
|
interface GestureEvent extends UIEvent {
|
|
scale: number
|
|
rotation: number
|
|
clientX: number
|
|
clientY: number
|
|
}
|
|
|
|
interface FilePickerAcceptType {
|
|
description: string
|
|
accept: Record<string, string[]>
|
|
}
|
|
|
|
interface FilePickerOptions {
|
|
types?: FilePickerAcceptType[]
|
|
suggestedName?: string
|
|
}
|
|
|
|
interface Window {
|
|
showOpenFilePicker?(options?: FilePickerOptions): Promise<FileSystemFileHandle[]>
|
|
showSaveFilePicker?(options?: FilePickerOptions): Promise<FileSystemFileHandle>
|
|
queryLocalFonts?(): Promise<
|
|
{
|
|
family: string
|
|
fullName: string
|
|
style: string
|
|
postscriptName: string
|
|
blob(): Promise<Blob>
|
|
}[]
|
|
>
|
|
mockWindowOpen?(url: string): void
|
|
}
|
|
}
|