import { IRequestOptions } from "@esri/arcgis-rest-request";
import { IHubOrganization } from "../core/types/IHubOrganization";
import { IPortal } from "@esri/arcgis-rest-portal";
import { IHubSearchResult } from "../search/types/IHubSearchResult";
/**
 * Fetch an organization from the portal
 * Note: IHubOrganization is a read-only interface for a subset of the IPortal object
 * The full portal is exposed as the `portal` property on the IHubOrganization object.
 * @param identifier
 * @param requestOptions
 * @returns
 */
export declare function fetchOrganization(identifier: string, requestOptions: IRequestOptions): Promise<IHubOrganization>;
/**
 * Convert an IPortal to an IHubSearchResult
 * @param portal
 * @returns
 */
export declare function portalToSearchResult(portal: IPortal): IHubSearchResult;
/**
 * Convert an IPortal to an IHubOrganization
 * @param portal
 * @param token
 * @returns
 */
export declare function portalToOrganization(portal: IPortal, token?: string): IHubOrganization;
