import React, { Dispatch, SetStateAction } from 'react';
import { Dict, Environment } from '../utils';
export type LinksDict = Dict<string>;
type LinksContextType = [LinksDict, Dispatch<SetStateAction<LinksDict>>];
/**
 * Adds loggedIn=1 parameter to the URL if 'isLoggedIn' flag is true, which means the user is logged in.
 * If 'isLoggedIn' is falsy, loggedin param will be removed.
 * This is supposed to aid login flow when navigating between Veracity applications.
 */
export declare function getLoggedInLink(link: string, isLoggedIn?: boolean): string;
export declare function LinksProvider(props: {
    children: React.ReactNode;
}): import("react/jsx-runtime").JSX.Element;
/** Returns links and setLinks from LinksContext. */
export declare function useLinks(): LinksContextType;
/**
 * Retrieves the links from CDN for the given environment and appends them with loggedin=1 parameter
 * if user is logged in. Links will be reloaded when 'env' changes or updated when 'isLoggedIn' changes.
 */
export declare function useLoadLinks(env?: Environment, isLoggedIn?: boolean): void;
export {};
//# sourceMappingURL=links.d.ts.map