import { QueryKeys } from "../enums/query-keys"; import { BaseItemDto } from "@jellyfin/sdk/lib/generated-client/models"; import { NativeStackScreenProps } from "@react-navigation/native-stack"; import { JellifyServer } from "../types/JellifyServer"; import { JellifyUser } from "../types/JellifyUser"; export type StackParamList = { ServerAddress: undefined; ServerAuthentication: { server: JellifyServer } LibrarySelection: { user: JellifyUser } Home: undefined; AddPlaylist: undefined; RecentArtists: { artists: BaseItemDto[] }; RecentTracks: { tracks: BaseItemDto[] }; UserPlaylists: { playlists: BaseItemDto[] }; Discover: undefined; Library: undefined; Artists: { query: QueryKeys.FavoriteArtists | QueryKeys.RecentlyPlayedArtists }; Albums: { query: QueryKeys.FavoriteAlbums | QueryKeys.RecentlyAdded }; Tracks: { query: QueryKeys.FavoriteTracks | QueryKeys.RecentlyPlayed }; Genres: undefined; Playlists: undefined; DeletePlaylist: { playlist: BaseItemDto } Search: undefined; Settings: undefined; Account: undefined; Server: undefined; Playback: undefined; Labs: undefined; Tabs: { screen: string; params: any }; Player: undefined; Queue: undefined; Artist: { artist: BaseItemDto }; Album: { album: BaseItemDto }; Playlist: { playlist: BaseItemDto }; Details: { item: BaseItemDto, isNested: boolean | undefined } } export type ServerAddressProps = NativeStackScreenProps; export type ServerAuthenticationProps = NativeStackScreenProps; export type LibrarySelectionProps = NativeStackScreenProps; export type TabProps = NativeStackScreenProps; export type PlayerProps = NativeStackScreenProps; export type ProvidedHomeProps = NativeStackScreenProps; export type AddPlaylistProps = NativeStackScreenProps; export type RecentArtistsProps = NativeStackScreenProps; export type RecentTracksProps = NativeStackScreenProps; export type UserPlaylistsProps = NativeStackScreenProps; export type DiscoverProps = NativeStackScreenProps; export type HomeArtistProps = NativeStackScreenProps; export type HomeAlbumProps = NativeStackScreenProps; export type HomePlaylistProps = NativeStackScreenProps; export type QueueProps = NativeStackScreenProps; export type LibraryProps = NativeStackScreenProps; export type ArtistsProps = NativeStackScreenProps; export type AlbumsProps = NativeStackScreenProps; export type FavoritePlaylistsProps = NativeStackScreenProps; export type DeletePlaylistProps = NativeStackScreenProps; export type TracksProps = NativeStackScreenProps; export type GenresProps = NativeStackScreenProps; export type DetailsProps = NativeStackScreenProps; export type AccountDetailsProps = NativeStackScreenProps; export type ServerDetailsProps = NativeStackScreenProps; export type PlaybackDetailsProps = NativeStackScreenProps; export type LabsProps = NativeStackScreenProps; export type useState = [T, React.Dispatch];