AI-native design editor. Open-source Figma alternative.
/// <reference types="@wdio/globals/types" />
import type * as TauriAPI from '@tauri-apps/api'
import type * as TauriOS from '@tauri-apps/plugin-os'
export {}
type NativeTestNode = {
childIds?: string[]
id: string
name?: string
parentId?: string | null
type: string
text?: string
}
type NativeTestStore = {
state: {
currentPageId: string
editingTextId: string | null
selectedIds: Set<string>
renderVersion: number
sceneVersion: number
}
graph: {
createNode: (type: string, parentId: string, changes: Record<string, unknown>) => NativeTestNode
deleteNode: (id: string) => void
getChildren: (id: string) => NativeTestNode[]
getNode: (id: string) => NativeTestNode | undefined
updateNode: (id: string, changes: Record<string, unknown>) => void
}
createShape: (type: string, x: number, y: number, width: number, height: number) => string
requestRender: () => void
select: (ids: string[]) => void
startTextEditing: (id: string) => void
textEditor?: { selectAll: () => void }
}
declare global {
interface Window {
__TAURI__?: Pick<typeof TauriAPI, 'core'> & { os?: typeof TauriOS }
openPencil?: {
getStore?: () => NativeTestStore
}
}
}