import type {NativeStackScreenProps} from '@react-navigation/native-stack'; import type {NfcTechType} from './nfc'; import type {Transponder} from './detection'; export type TagDataParam = { uid: string; techTypes: NfcTechType[]; sak?: number; atqa?: string; ats?: string; historicalBytes?: string; }; export type RootStackParamList = { Home: undefined; Scan: undefined; Result: { tagData?: TagDataParam; transponder?: Transponder; }; }; export type HomeScreenProps = NativeStackScreenProps; export type ScanScreenProps = NativeStackScreenProps; export type ResultScreenProps = NativeStackScreenProps< RootStackParamList, 'Result' >; declare global { namespace ReactNavigation { interface RootParamList extends RootStackParamList {} } }