/** Enumeration of available platforms */ export declare enum Platform { Builder = "builder", Player = "player", Library = "library", Analytics = "analytics" } /** Maps each Platform to a URL generator function */ export type HostsMapper = Partial string | undefined>>; /** * Generates a default hosts mapper given a record of platform to hostname * Only the origin part of the given hostname will be used! * * The default mapping is: * BUILDER_HOST/items/ * PLAYER_HOST/ * LIBRARY_HOST/ * ANALYTICS_HOST/items/ * * For any advanced usage, create your own {@see HostsMapper} */ export declare function defaultHostsMapper(hostsUrls: Partial>): HostsMapper; /** * Hook to create a platform navigator function * @param hostsMapper {@see HostsMapper} * @param itemId Optional ID of the item context which will be opened in the target platform * @returns A mouse events factory that will generate left and middle click actions, to be applied to a given platform */ export declare function usePlatformNavigation(hostsMapper: HostsMapper, itemId?: string): (platform: Platform) => { href: string; };