import * as defaultCompiler from '@vue/compiler-sfc'; import { ImportMap, OutputModes } from './utils/types-helper'; import type { SFCScriptCompileOptions, SFCAsyncStyleCompileOptions, SFCTemplateCompileOptions } from '@vue/compiler-sfc'; import type { PlaygroundPkgCdn } from '../playground/utils/types-helper'; export declare class File { filename: string; code: string; hidden: boolean; compiled: { js: string; css: string; ssr: string; }; constructor(filename: string, code?: string, hidden?: boolean); } export interface StoreState { mainFile: string; files: Record; initFiles: Record; activeFile: File; errors: (string | Error)[]; vueRuntimeURL: string; } export interface SFCOptions { script?: Omit; style?: SFCAsyncStyleCompileOptions; template?: SFCTemplateCompileOptions; } export interface Store { state: StoreState; options?: SFCOptions; compiler: typeof import('vue/compiler-sfc'); setActive: (filename: string) => void; addFile: (filename: string | File) => void; deleteFile: (filename: string) => void; getImportMap: () => any; initialShowOutput: boolean; initialOutputMode: OutputModes; } interface ReplStoreOptions { serializedState?: string; initFiles?: File[]; showOutput?: boolean; outputMode?: OutputModes | string; defaultVueRuntimeURL?: string; pkgCdn?: PlaygroundPkgCdn; initImportMap?: ImportMap; } export declare class ReplStore implements Store { state: StoreState; compiler: typeof defaultCompiler; options?: SFCOptions; initialShowOutput: boolean; initialOutputMode: OutputModes; pkgCdn?: PlaygroundPkgCdn; private defaultVueRuntimeURL; private pendingCompiler; constructor({ serializedState, defaultVueRuntimeURL, showOutput, outputMode, initFiles, initImportMap, pkgCdn }?: ReplStoreOptions); setActive(filename: string): void; addFile(fileOrFilename: string | File): void; deleteFile(filename: string): void; serialize(): string; getFiles(): Record; setFiles(newFiles: Record, mainFile?: string): Promise; private initImportMap; getImportMap(): any; setImportMap(map: ImportMap): void; setVueVersion(version: string): Promise; resetVueVersion(): void; } export {};