@builder.io/dev-tools
Version:
Builder.io Visual CMS Devtools
14 lines (13 loc) • 989 B
TypeScript
import type { AddCliOptions, DevToolsSys, FileNode, SyncInfo } from "../types";
export declare function extractSignatureInfo(content: string): {
contentId?: string;
sessionKey?: string;
snippetId?: string;
};
export declare function getAllProjectFiles(basePath: string, globPattern?: string, extraIgnorePatterns?: string[]): Promise<string[]>;
export declare function findBuilderFiles(basePath: string, targetContentId: string, targetSessionKey: string): Promise<FileNode[]>;
export declare function filterNonImportantFiles(files: string[]): string[];
export declare function getIgnorePatterns(basePath: string): (path: string) => boolean;
export declare function watchDirectory(basePath: string, syncInfo: SyncInfo, onChange: (updatedSyncInfo: SyncInfo) => void): () => Promise<void>;
export declare function setupSyncServer(sys: DevToolsSys, initialSyncInfo?: SyncInfo): Promise<void>;
export declare function syncCommand(opts: AddCliOptions): Promise<SyncInfo | undefined>;