import { Entity } from '@sage-bionetworks/synapse-types';
import { QueryOptions } from '@tanstack/react-query';
/**
 * Follows a Synapse entity ID to the end of the chain of links
 * @param synId the ID of a Synapse entity that may be a link
 * @returns the ID of the entity at the end of the chain of links
 * @throws an error if a link is found that does not resolve, or if a cycle is found
 */
export declare function resolveLinkEntity(synId: string, versionNumber?: number, accessToken?: string): Promise<Entity>;
export declare function useResolveLinkEntity(synId: string, versionNumber?: number, options?: QueryOptions<Entity>): import("@tanstack/react-query").UseQueryResult<Entity, Error>;
//# sourceMappingURL=ResolveLinkEntity.d.ts.map