1 | import { SFCCompiler, DescriptorCompileResult } from './compiler';
|
2 | export interface AssembleSource {
|
3 | filename: string;
|
4 | script?: {
|
5 | source: string;
|
6 | map?: any;
|
7 | };
|
8 | template?: {
|
9 | source: string;
|
10 | functional?: boolean;
|
11 | };
|
12 | styles: Array<{
|
13 | source: string;
|
14 | scoped?: boolean;
|
15 | media?: string;
|
16 | map?: any;
|
17 | moduleName?: string;
|
18 | module?: any;
|
19 | }>;
|
20 | scopeId: string;
|
21 | }
|
22 | export interface AssembleResults {
|
23 | code: string;
|
24 | map?: any;
|
25 | }
|
26 | export interface AssembleOptions {
|
27 | isWebComponent?: boolean;
|
28 | normalizer?: string;
|
29 | styleInjector?: string;
|
30 | styleInjectorSSR?: string;
|
31 | styleInjectorShadow?: string;
|
32 | }
|
33 | export declare function assemble(compiler: SFCCompiler, filename: string, result: DescriptorCompileResult, options?: AssembleOptions): AssembleResults;
|
34 | export declare function assembleFromSource(compiler: SFCCompiler, options: AssembleOptions, { filename, script, template, styles, scopeId }: AssembleSource): AssembleResults;
|