Repository navigation
Expand file tree
/
Copy pathglobal.d.ts
More file actions
71 lines (65 loc) · 1.66 KB
/
Copy pathglobal.d.ts
File metadata and controls
71 lines (65 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
interface Window {
_hsq?: unknown[]
}
interface WebMCPToolDefinition {
name: string
title?: string
description: string
inputSchema: Record<string, unknown>
execute: (input: unknown) => unknown | Promise<unknown>
annotations?: {
readOnlyHint?: boolean
untrustedContentHint?: boolean
}
}
interface WebMCPModelContext {
registerTool: (
tool: WebMCPToolDefinition,
options?: { signal?: AbortSignal },
) => void | Promise<void>
}
interface Navigator {
modelContext?: WebMCPModelContext
}
interface Document {
modelContext?: WebMCPModelContext
}
declare module '@glidejs/glide' {
interface GlideOptions {
type?: string
startAt?: number
perView?: number
focusAt?: string | number
gap?: number
autoplay?: number | false
hoverpause?: boolean
keyboard?: boolean
bound?: boolean
swipeThreshold?: number | false
dragThreshold?: number | false
perTouch?: number | false
touchRatio?: number
touchAngle?: number
animationDuration?: number
rewind?: boolean
rewindDuration?: number
animationTimingFunc?: string
direction?: 'ltr' | 'rtl'
peek?: number | { before: number; after: number }
breakpoints?: Record<number, Partial<GlideOptions>>
classes?: Record<string, Record<string, string>>
throttle?: number
}
export default class Glide {
constructor(selector: string | HTMLElement, options?: GlideOptions)
mount(): this
destroy(): void
go(pattern: string): void
update(settings?: Partial<GlideOptions>): void
on(event: string, callback: () => void): void
disable(): void
enable(): void
index: number
settings: GlideOptions
}
}