/** * External dependencies */ import type { AiCapability, Modality, Content, ModelParams, Candidates } from '@ai-services/ai/types'; type WordPressAttachmentSizeData = { url: string; width: number; height: number; }; export type WordPressAttachment = { id: number; url: string; mime: string; icon: string; sizes?: Record; [key: string]: unknown; }; export type AiPlaygroundMessage = { content: Content; type: 'user' | 'model' | 'error'; } & AiPlaygroundMessageAdditionalData; export type AiPlaygroundMessageAdditionalData = { service?: { slug: string; name: string; }; model?: { slug: string; name: string; }; foundationalCapability?: AiCapability; attachment?: WordPressAttachment; attachments?: (WordPressAttachment | null)[]; rawData?: { content: Content | Content[]; modelParams: ModelParams; } | Candidates; }; export type AiServiceOption = { identifier: string; label: string; }; export type AiModelOption = { identifier: string; label: string; }; export type AiCapabilityOption = { identifier: AiCapability; label: string; }; export type ModalityOption = { identifier: Modality; label: string; }; export {}; //# sourceMappingURL=types.d.ts.map