myst-cli
Version:
Command line tools for MyST
29 lines • 1.01 kB
TypeScript
import type { GenericNode, GenericParent } from 'myst-common';
import type { VFile } from 'vfile';
import type { ISession } from '../session/types.js';
type RORResponse = {
id: string;
name: string;
};
/**
* Resolve the given ror.org ID into JSON data about the organization
*
* @param session - CLI session
* @param ror - ror.org ID
*/
export declare function resolveRORAsJSON(session: ISession, ror: string): Promise<RORResponse | undefined>;
/**
* Fetch organization data for the given ROR ID in JSON
*
* @param session - CLI session
* @param vfile
* @param node
* @param ror - ror ID (does not include the https://ror.org)
*/
export declare function resolveROR(session: ISession, vfile: VFile, node: GenericNode, ror: string): Promise<RORResponse | undefined>;
/**
* Find in-line RORs and add default text
*/
export declare function transformLinkedRORs(session: ISession, vfile: VFile, mdast: GenericParent, path: string): Promise<void>;
export {};
//# sourceMappingURL=ror.d.ts.map