UNPKG

motionlink-cli

Version:

Making it easy to use Notion as a Content Management system for personal websites, portfolios, blogs, business homepages, and other kinds of static websites.

26 lines (25 loc) 880 B
import { TemplateRule } from '../models/config_models'; /** * A service for fetching media assets from given Notion URLs. * * Uses Collect-Commit pattern. */ export default class MediaService { private readonly requests; stageFetchRequest(url: string, templateRule: TemplateRule): string; commit(): Promise<void>; private static _instance; static get instance(): MediaService; static setMockedInstance(instance: MediaService): void; } export declare class MediaDestinationController { private templateRule; constructor(args: { forRule: TemplateRule; }); makeFileDestinationForAssetWithUrl(url: string): string; static getAbsoluteDestinationPath(outDir: string, writeMediaTo: string | undefined, subfolderName: string): string; private getSubfolderNameForUrl; private genUniqueBasename; private getUrlBasename; }