import { Dispatch, SetStateAction } from 'react'; type Environment = { instance: string; domain: string; environment: string; }; type EnvironmentContextProps = { isLoading: boolean; environments: Environment[]; environment?: Environment; keys?: { isLoading: true; data?: never; error?: never; } | { isLoading: false; data: { apikey: string; adminkey: string; }; error?: never; } | { isLoading: false; data?: never; error: { message: string; }; }; setEnvironment: Dispatch>; }; declare const EnvironmentContext: import('react').Context; export declare const envToString: (env?: Environment) => string; export declare const isEnvSame: (envA?: Environment, envB?: Environment) => boolean; export declare const isEnvListSame: (listA: readonly Environment[], listB: readonly Environment[]) => boolean; declare const useEnvironmentUnsafe: () => EnvironmentContextProps; declare const useEnvironment: () => Required; export { EnvironmentContext, useEnvironment, useEnvironmentUnsafe, type Environment };