import Command from '@oclif/command'; import { IStoryblokConfig } from './config/config'; export default abstract class extends Command { storyblokConfig(): IStoryblokConfig; files(): { getCurrentDirectoryBase: () => string; isDirectoryExists: (path: string) => boolean; createDir: (dirPath: string) => Promise; createJsonFile: (content: string, pathWithFilename: string) => Promise; copyFolder: (src: string, dest: string) => Promise; copyFile: (src: string, dest: string) => Promise; }; api(): { discover: { findComponents: (componentDirectory: string) => any[]; findComponentsWithExt: (ext: string) => any[]; findDatasources: () => any[]; }; datasources: { getAllDatasources: () => Promise; getDatasource: (datasourceName: string) => Promise; getDatasourceEntries: (datasourceName: string) => Promise; createDatasource: (datasource: any) => Promise; createDatasourceEntry: (datasourceEntry: any, datasourceId: string) => Promise; updateDatasourceEntry: (datasourceEntry: any, datasourceId: string, datasourceToBeUpdated: any) => Promise; updateDatasource: (datasource: any, temp: any) => Promise; createDatasourceEntries: (datasourceId: string, datasource_entries: any, remoteDatasourceEntries: any) => void; syncDatasources: (specifiedDatasources: any) => Promise; }; components: { getAllComponents: () => Promise; getComponent: (componentName: string) => Promise; getComponentsGroup: (groupName: string) => Promise; getAllComponentsGroups: () => Promise; createComponentsGroup: (groupName: string) => Promise; syncComponents: (specifiedComponents: any, ext: string | false, presets: boolean) => Promise; syncAllComponents: (ext: string | false, presets: boolean) => void; updateComponent: (component: any, presets: boolean) => void; createComponent: (component: any, presets: boolean) => void; }; presets: { getComponentPresets: (componentName: string) => Promise; getPreset: (presetId: string) => Promise; getAllPresets: () => Promise; createPreset: (p: any) => void; updatePreset: (p: any) => void; }; spaces: { createSpace: (spaceName: string) => Promise; getSpace: (spaceId: string) => Promise; }; }; }