import type detox from 'detox'; import type { ComponentProps, ComponentType } from 'react'; import type { Args, Renderer, StoryAnnotations, StoryContext } from 'storybook/internal/types' with { 'resolution-mode': 'import' }; export type DetoxStoryObj = CmpOrArgs extends ComponentType ? DetoxStoryAnnotations> : DetoxStoryAnnotations; type DetoxStoryAnnotations> = Omit, 'play'> & { detox?: { onlyOnOperatingSystems?: ('ios' | 'android')[]; launch?: Detox.DeviceLaunchAppConfig; }; play?: (context: StoryContext & { detox: typeof detox; }) => Promise | void; }; export {};