import { LoadConfigResult, ConfigLoadError, StackbitConfigNotFoundError } from '@stackbit/sdk'; import { APIMethodInterface, APIMethodCreateDocument, APIMethodCreatePreset, APIMethodDeleteDocument, APIMethodDeletePreset, APIMethodDuplicateDocument, APIMethodGetAssets, APIMethodUpdateDocument, APIMethodUploadAssets, APIMethodValidateDocuments, APIMethodPublishDocuments, APIMethodCreateAndLinkDocument, APIMethodUploadAndLinkAsset, APIMethodUpdateAsset, APIMethodSearchDocuments, APIMethodHasAccess, APIMethodOnWebhook, APIMethodCreateAndCrossLinkDocument, APIMethodCreateScheduledAction, APIMethodGetScheduledActions, APIMethodCancelScheduledAction, APIMethodUpdateScheduledAction, APIMethodGetCustomActions, APIMethodGetRunningCustomActions, APIMethodRunCustomAction, APIMethodGetDocumentVersions, APIMethodGetDocumentForVersion, APIMethodGetCollections, APIMethodGetSiteMap, APIMethodGetTreeViews, APIMethodGetSchema, APIMethodGetObjects, APIMethodGetObjectsWithAnnotations, APIMethodGetDocuments, APIMethodGetCSIDocuments, APIMethodUnpublishDocuments, APIMethodArchiveDocument, APIMethodGetStagedChanges, APIMethodUnarchiveDocument } from '../types/api-methods'; import * as StackbitTypes from '@stackbit/types'; export interface RunnerOptions { rootDir: string; noProxy?: boolean; runnableDir?: string; cmsType?: string; csiEnabled?: boolean; csiWebhookUrl?: string; contentfulAccessToken?: string; contentfulSpaceIds?: [string]; contentfulPreviewTokens?: [string]; sanityToken?: string; sanityStudioPath?: string; sanityDataset?: string; sanityProjectId?: string; sanityStudioUrl?: string; logger?: StackbitTypes.Logger; isLocalDev: boolean; isDevServer: boolean; teamId?: string; siteId?: string; netlifyAccessToken?: string; remoteContentSourceBaseURL?: string; apiSecret?: string; projectId?: string; repoUrl?: string; repoBranch?: string; repoPublishBranch?: string; deployKey?: string; } export default class Runner implements APIMethodInterface { private readonly contentStoreAdapter; private readonly workers; private readonly rootDir; private readonly appDir; private readonly logger; private readonly isLocalDev; private readonly isDevServer; private readonly noProxy; private readonly teamId?; private readonly siteId?; private readonly netlifyAccessToken?; private readonly apiSecret?; private readonly projectId?; private readonly deployKey?; private readonly repoUrl?; private readonly remoteContentSourceBaseURL?; private stackbitConfigResult; private editor; private watcher; private ssg; constructor(options: RunnerOptions); install(): Promise; loadStackbitConfig(): Promise<{ config: import("@stackbit/sdk").Config | null; errors: import("@stackbit/sdk").ConfigValidationError[] | (StackbitConfigNotFoundError | ConfigLoadError)[]; }>; loadStackbitConfigWithRemoteContentSources(): Promise<{ config: import("@stackbit/sdk").Config | null; errors: import("@stackbit/sdk").ConfigValidationError[] | (StackbitConfigNotFoundError | ConfigLoadError)[]; }>; onStackbitConfigUpdate(result: LoadConfigResult): Promise; handleFileChanges(filePaths: string[]): Promise; getDirectPaths(): string[]; /** * Function retuning a map or a function that rewrites direct proxy requests. * https://github.com/chimurai/http-proxy-middleware#http-proxy-middleware-options * @return {Function|Object} */ getDirectRoutes(): { [hostOrPath: string]: string; }; shouldProxyWebsockets(): boolean; getDirectChangeOrigin(): boolean | undefined; getDirectChangeSocketOrigin(): boolean | undefined; getObjects({ objectIds, locale, user }: APIMethodGetObjects['data']): Promise; getDocuments({ documentSpecs, user }: APIMethodGetDocuments['data']): Promise; getCSIDocuments(data?: APIMethodGetCSIDocuments['data']): Promise; getStagedChanges(data: APIMethodGetStagedChanges['data']): Promise; getObjectsWithAnnotations({ annotationTree, clientAnnotationErrors, resolveAllReferences, sourcemaps, locale, user }: APIMethodGetObjectsWithAnnotations['data']): Promise; getCollections({ locale, user }: APIMethodGetCollections['data']): Promise; getSiteMap({ locale, user }: APIMethodGetSiteMap['data']): Promise; getTreeViews({ user }: APIMethodGetTreeViews['data']): Promise; getSchema({ locale, user }: APIMethodGetSchema['data']): Promise; getUrl(srcDocumentId: string, srcProjectId: string, srcType: string, locale?: string): Promise; getObject(objectId: string, projectId: string): Promise; listAssets(filterParams: any): Promise; uploadAsset(url: string, filename: string, user: any): Promise; hasAccess(data: APIMethodHasAccess['data']): Promise; createDocument(data: APIMethodCreateDocument['data']): Promise; createAndLinkDocument(data: APIMethodCreateAndLinkDocument['data']): Promise; createAndCrossLinkDocument(data: APIMethodCreateAndCrossLinkDocument['data']): Promise; uploadAndLinkAsset(data: APIMethodUploadAndLinkAsset['data']): Promise; duplicateDocument(data: APIMethodDuplicateDocument['data']): Promise; updateDocument(data: APIMethodUpdateDocument['data']): Promise; deleteDocument(data: APIMethodDeleteDocument['data']): Promise; archiveDocument(data: APIMethodArchiveDocument['data']): Promise; unarchiveDocument(data: APIMethodUnarchiveDocument['data']): Promise; getScheduledActions(): Promise; createScheduledAction(data: APIMethodCreateScheduledAction['data']): Promise; cancelScheduledAction(data: APIMethodCancelScheduledAction['data']): Promise; updateScheduledAction(data: APIMethodUpdateScheduledAction['data']): Promise; searchDocuments(data: APIMethodSearchDocuments['data']): Promise; onWebhook(data: APIMethodOnWebhook['data']): Promise; validateDocuments(data: APIMethodValidateDocuments['data']): Promise; publishDocuments(data: APIMethodPublishDocuments['data']): Promise; unpublishDocuments(data: APIMethodUnpublishDocuments['data']): Promise; getAssets(data: APIMethodGetAssets['data']): Promise; uploadAssets(data: APIMethodUploadAssets['data']): Promise; updateAsset(data: APIMethodUpdateAsset['data']): Promise; createPreset(data: APIMethodCreatePreset['data']): Promise; deletePreset(data: APIMethodDeletePreset['data']): Promise; getCustomActions(data: APIMethodGetCustomActions['data']): Promise; getRunningCustomActions(data: APIMethodGetRunningCustomActions['data']): Promise; runCustomAction(data: APIMethodRunCustomAction['data']): Promise; getDocumentVersions(data: APIMethodGetDocumentVersions['data']): Promise; getDocumentForVersion(data: APIMethodGetDocumentForVersion['data']): Promise; makeAction(action: string, data: any): Promise; keepAlive(): void; isCsiEnabled(): boolean; getAssetFilePath(url: string): string | undefined; pullContent(): Promise<{ didPull: boolean; }>; private getRunEnv; ensureRepoConfigured(): Promise; destroy(): Promise; } //# sourceMappingURL=index.d.ts.map