declare var wp: any; declare var ABTestingForWP: { postId?: string; }; declare type ABTestVariant = { id: string; name: string; selected: boolean; distribution: number; }; declare type ABTestAttributes = { id: string; variants: ABTestVariant[]; title: string; control: string; isEnabled: boolean; completedOnboarding: boolean; postGoal: number; postGoalType: string; startedAt: Date | string; }; declare type GutenbergProps = { clientId: string; setAttributes: (newState: any) => void; }; declare type ABTestResult = { id: string; name: string; participants: number; conversions: number; }; declare type TestVariant = { id: string; conversions: number; participants: number; leading: boolean; name: string; rate: number; uplift: number; } declare type TestData = { id: string; control: string; title: string; goalName: string; goalType: string; goalLink?: string; postId: string; postGoal: string; postType: string; postName: string; postLink?: string; postDeleteLink?: string; startedAt: number; totalParticipants: number; isArchived: string; isEnabled: boolean; variants: TestVariant[]; };