| 1 |
/** |
| 2 |
* WordPress dependencies |
| 3 |
*/ |
| 4 |
import type { _Hooks } from '@wordpress/hooks/build-types/createHooks'; |
| 5 |
|
| 6 |
export { }; |
| 7 |
|
| 8 |
declare global { |
| 9 |
interface Window { |
| 10 |
// eslint-disable-next-line @typescript-eslint/no-explicit-any |
| 11 |
wp: any; |
| 12 |
|
| 13 |
/** |
| 14 |
* Parsely Options |
| 15 |
*/ |
| 16 |
PARSELY?: { |
| 17 |
config?: { |
| 18 |
uuid: string, |
| 19 |
parsely_site_uuid: string, |
| 20 |
}, |
| 21 |
autotrack?: boolean, |
| 22 |
onload?: () => unknown, |
| 23 |
onReady?: () => unknown, |
| 24 |
}, |
| 25 |
|
| 26 |
wpParselyAdminUrl: string; |
| 27 |
wpParselyContentHelperDefaults?: { |
| 28 |
excerptSuggestions?: { persona?: string, tone?: string }, |
| 29 |
titleSuggestions?: { persona?: string, tone?: string }, |
| 30 |
}; |
| 31 |
wpParselyContentHelperPermissions: string; |
| 32 |
wpParselyContentHelperPersonas?: Record<string, string>; |
| 33 |
wpParselyContentHelperSettings: string; |
| 34 |
wpParselyContentHelperTones?: Record<string, string>; |
| 35 |
wpParselyDependencies: { [key: string]: string }; |
| 36 |
wpParselyDisableAutotrack?: boolean; |
| 37 |
wpParselyEmptyCredentialsMessage: string; |
| 38 |
wpParselyHooks?: _Hooks; |
| 39 |
wpParselyPostsStatsResponse: string; |
| 40 |
wpParselyPostUrl: string; |
| 41 |
wpParselySiteId: string, |
| 42 |
wpParselySmartLinkingAllowedBlocks: string[]; |
| 43 |
wpParselyTrackableStatuses: string[]; |
| 44 |
wpParselyUseCategorySlugsInSearches: boolean; |
| 45 |
|
| 46 |
/** |
| 47 |
* Jetpack Editor Initial State. |
| 48 |
* This is required for the Excerpt Suggestions feature to know if |
| 49 |
* Jetpack AI Content Lens is available and enabled. |
| 50 |
* |
| 51 |
* @since 3.13.0 |
| 52 |
* |
| 53 |
* @see https://github.com/Automattic/jetpack/blob/4eb6a42833879b30aa2a7f4c82e44fc094307de3/projects/plugins/jetpack/extensions/plugins/ai-content-lens/editor.js#L16 |
| 54 |
*/ |
| 55 |
Jetpack_Editor_Initial_State?: { |
| 56 |
available_blocks: { |
| 57 |
[key: string]: { |
| 58 |
available: boolean, |
| 59 |
unavailable_reason?: string, |
| 60 |
details: [], |
| 61 |
}; |
| 62 |
}; |
| 63 |
}; |
| 64 |
|
| 65 |
_parsely_traffic_boost_preview_nonce?: string; |
| 66 |
} |
| 67 |
} |
| 68 |
|