components
3 years ago
extensions
3 years ago
hooks
3 years ago
icons
3 years ago
lib
3 years ago
supports
3 years ago
transforms
3 years ago
ai-assistant.php
3 years ago
global.d.ts
3 years ago
global.d.ts
62 lines
| 1 | import { SiteAIAssistantFeatureEndpointResponseProps } from './hooks/use-ai-feature'; |
| 2 | |
| 3 | export {}; |
| 4 | |
| 5 | declare global { |
| 6 | interface Window { |
| 7 | JP_CONNECTION_INITIAL_STATE: { |
| 8 | apiRoot: string; |
| 9 | apiNonce: string; |
| 10 | registrationNonce: string; |
| 11 | connectionStatus: { |
| 12 | isActive: boolean; |
| 13 | isStaging: boolean; |
| 14 | isRegistered: boolean; |
| 15 | isUserConnected: boolean; |
| 16 | hasConnectedOwner: boolean; |
| 17 | offlineMode: { |
| 18 | isActive: boolean; |
| 19 | constant: boolean; |
| 20 | url: boolean; |
| 21 | filter: boolean; |
| 22 | wpLocalConstant: boolean; |
| 23 | }; |
| 24 | isPublic: boolean; |
| 25 | }; |
| 26 | userConnectionData: { |
| 27 | currentUser: { |
| 28 | isConnected: boolean; |
| 29 | isMaster: boolean; |
| 30 | username: string; |
| 31 | id: number; |
| 32 | blogId: number; |
| 33 | wpcomUser: { |
| 34 | avatar: boolean; |
| 35 | }; |
| 36 | gravatar: string; |
| 37 | permissions: { |
| 38 | connect: boolean; |
| 39 | connect_user: boolean; |
| 40 | disconnect: boolean; |
| 41 | }; |
| 42 | }; |
| 43 | connectionOwner: null; |
| 44 | }; |
| 45 | connectedPlugins: object; |
| 46 | wpVersion: string; |
| 47 | siteSuffix: string; |
| 48 | connectionErrors: Array; |
| 49 | }; |
| 50 | Jetpack_Editor_Initial_State: { |
| 51 | available_blocks: { |
| 52 | 'ai-assistant-support': boolean; |
| 53 | }; |
| 54 | adminUrl: string; |
| 55 | siteLocale: string; |
| 56 | 'ai-assistant': SiteAIAssistantFeatureEndpointResponseProps; |
| 57 | screenBase?: string; |
| 58 | }; |
| 59 | wpcomFetch: function; |
| 60 | } |
| 61 | } |
| 62 |