@jbrowse/core
Version:
JBrowse 2 core libraries used by plugins
9 lines (8 loc) • 953 B
TypeScript
import type { BaseInternetAccountModel } from '../../pluggableElementTypes/index.ts';
import type { FileLocation } from '../../util/index.ts';
export declare const MAX_LABEL_LENGTH = 5;
export declare function isAdminMode(): boolean;
export declare function shorten(str: string): string;
export declare function getAccountLabel(account: BaseInternetAccountModel): string | number | bigint | true | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined>;
export declare function getInitialSourceType(location?: FileLocation): string;
export declare function addAccountToLocation(location: FileLocation, account?: BaseInternetAccountModel): FileLocation;