import { FileEntity } from '@sage-bionetworks/synapse-types';
import { UseMutationOptions } from '@tanstack/react-query';
export declare function getFileNameFromExternalUrl(path: string): string;
type UseLinkFileEntityToURLArgs = {
    /** The FileEntity to update or container entity in which a new FileEntity should be created */
    entityId: string;
    /** A URL pointing to the external file */
    url: string;
    /** An optional name for the FileHandle and newly created FileEntity. If not provided, the name will be generated based
     * on the URL. An updated FileEntity will not receive the new name. */
    name?: string;
};
export declare function useLinkFileEntityToURL(options?: UseMutationOptions<FileEntity, Error, UseLinkFileEntityToURLArgs>): import("@tanstack/react-query").UseMutationResult<FileEntity, Error, UseLinkFileEntityToURLArgs, unknown>;
export {};
//# sourceMappingURL=useLinkFileEntityToURL.d.ts.map