@embeddable.com/sdk-core
Version:
Core Embeddable SDK module responsible for web-components bundling and publishing.
19 lines (18 loc) • 1.32 kB
TypeScript
import { CompilerBuildResults } from "@stencil/core/compiler";
import { RollupWatcher } from "rollup";
import { ChildProcess } from "node:child_process";
import { ResolvedEmbeddableConfig } from "./defineConfig";
import { BuildResultsComponentGraph } from "@stencil/core/internal";
export declare const buildWebComponent: (config: any) => Promise<void>;
declare const _default: () => Promise<void>;
export default _default;
export declare const configureWatcher: (watcher: RollupWatcher, ctx: ResolvedEmbeddableConfig) => Promise<void>;
export declare const globalHookWatcher: (watcher: RollupWatcher, key: string) => Promise<void>;
export declare const openDevWorkspacePage: (previewBaseUrl: string, workspaceId: string) => Promise<ChildProcess>;
export declare const sendBuildChanges: (ctx: ResolvedEmbeddableConfig) => Promise<void>;
export declare const sendEmbeddableChanges: (ctx: ResolvedEmbeddableConfig, { isInitialSync }?: {
isInitialSync?: boolean;
}) => Promise<void>;
export declare function onWebComponentBuildFinish(e: CompilerBuildResults, config: ResolvedEmbeddableConfig): Promise<void>;
export declare function waitForStableHmrFiles(componentGraph: BuildResultsComponentGraph | undefined, config: ResolvedEmbeddableConfig): Promise<void>;
export declare function resetStateForTesting(): void;