import { NavigationRouteConfigMap, NavigationContainer } from "react-navigation"; import { Component, PureComponent } from "react"; import { TextStyle, StyleSheet } from "react-native"; type theme = "dark" | "light"; type language = "fa" | "en"; interface colorsProps { background: string; on_background: string; surface: string; on_surface: string; primary: string; on_primary: string; secondary: string; on_secondary: string; thirdy: string; on_thirdy: string; error: string; on_error: string; warning: string; on_warning: string; fine: string; on_fine: string; placeholder: string; special: string; } interface modals { [key: string]: { component: String; NonWithdrawal: boolean; statusbar: String[]; }; } type menu_content = Component | PureComponent; interface typography { title: TextStyle; body: TextStyle; desc: TextStyle; note: TextStyle; [key: string]: TextStyle; } interface StackNavigatorParams { modals: modals; modals_statusbar; colors: colorsProps; MenuContent: menu_content; typography: typography; pages: NavigationRouteConfigMap; first_page: String; } declare namespace config { const appNavigator: NavigationContainer, language: String, theme: String, typography: typography, first_page: String, modals: modals, modals_statusbar: Object, slider: Object, pages: NavigationRouteConfigMap, menu_content: menu_content; function createStackNavigator(config: StackNavigatorParams): void; const isRTL: Boolean; namespace language_actions { async function reduce(): void; } namespace theme_actions { async function reduce(): void; } const colorContent: String; function submit(language: language, theme: theme): void; const isAppleStatusBarBig: boolean; } export const colors: colorsProps; export default config;