index.d.ts 681 B

123456789
  1. export { Mapping, SourceMap } from '@volar/source-map';
  2. export * from './lib/editor';
  3. export * from './lib/linkedCodeMap';
  4. export * from './lib/types';
  5. export * from './lib/utils';
  6. import type { Language, LanguagePlugin, MapperFactory, SourceScript, VirtualCode } from './lib/types';
  7. export declare const defaultMapperFactory: MapperFactory;
  8. export declare function createLanguage<T>(plugins: LanguagePlugin<T>[], scriptRegistry: Map<T, SourceScript<T>>, sync: (id: T, includeFsFiles: boolean, shouldRegister: boolean) => void, onAssociationDirty?: (targetId: T) => void): Language<T>;
  9. export declare function forEachEmbeddedCode(virtualCode: VirtualCode): Generator<VirtualCode>;