@equinor/mad-core
Version:
Core library for the Mobile App Delivery team
32 lines (31 loc) • 1.21 kB
TypeScript
export type AuthConfig = {
clientId: string;
scopes: string[];
/**
* resolved redirectUri. This can either be `redirectUri` or `redirectUriWeb` from the mad config, depending on which platform
* you're running on.
*/
redirectUri: string;
};
export declare const useAuthConfig: () => AuthConfig;
export declare const useLoginScreenConfig: () => {
splash: import("react-native").ImageSourcePropType;
backgroundColor?: string;
addScreenManually?: boolean;
};
export declare const useAppVersion: () => string;
export declare const useEnvironment: () => "dev" | "test" | "qa" | "prod" | "q87";
export declare const useServicePortalName: () => string;
export declare const useAbout: () => {
endpoints: string[];
buildNumber: string;
} | undefined;
export declare const useExperimentalFeatures: () => {
useExpoAuthSession?: boolean;
} | undefined;
export declare const useServiceNow: () => string | undefined;
export declare const useNavigateToMainRoute: () => () => void;
export declare const useSettingsScreenPremadeConfig: () => {
language: import("../..").SettingsScreenSectionProps | undefined;
common: import("../..").SettingsScreenSectionProps;
};