@curvenote/cli
Version:
CLI Client library for Curvenote
15 lines • 528 B
TypeScript
import type { WorkDTO } from '@curvenote/common';
import type { ISession } from '../session/types.js';
export type LookupKeyMode = 'id' | 'doi';
type ResolveExistingWorkOpts = {
mode: LookupKeyMode;
key?: string;
doi?: string;
yes?: boolean;
forceNew?: boolean;
contextLabel: string;
fallbackCreateKey?: string;
};
export declare function resolveExistingWork(session: ISession, opts: ResolveExistingWorkOpts): Promise<WorkDTO | undefined>;
export {};
//# sourceMappingURL=resolveExistingWork.d.ts.map