import type { WorkDTO } from '@curvenote/common'; import type { PushOpts } from './types.js'; import type { ISession } from '../session/types.js'; export declare function postNewWork(session: ISession, cdnKey: string, cdn: string, key?: string, metadata?: { title?: string; description?: string; authors?: string[]; author_details?: Record[]; doi?: string; date?: string; canonical?: boolean; contains?: string[]; cdn?: string; cdn_key?: string; metadata?: Record; tags?: string[]; }): Promise; export declare function postNewWorkVersion(session: ISession, versionsUrl: string, cdnKey: string, cdn: string, extra?: { metadata?: Record; tags?: string[]; }): Promise; export declare function postNewWorkVersionFromMetadata(session: ISession, versionsUrl: string, metadata: { title?: string; description?: string; authors?: string[]; author_details?: Record[]; doi?: string; date?: string; canonical?: boolean; metadata?: Record; contains?: string[]; cdn?: string; cdn_key?: string; tags?: string[]; }): Promise; /** * Push a new work or new version of work based on myst contents in a folder * * This will: * - Check for project.id (work key) and add it if missing * - Upload content to CDN * - Check if work exists and if not, create new work * - Create new version of work */ export declare function push(session: ISession, opts?: PushOpts): Promise; //# sourceMappingURL=push.d.ts.map