12 lines
552 B
TypeScript
12 lines
552 B
TypeScript
import type { Rolldown } from 'vite';
|
|
import { type CompileProps, type CompileResult } from '../core/compile/index.js';
|
|
import type { CompileMetadata } from './types.js';
|
|
interface CompileAstroOption {
|
|
compileProps: CompileProps;
|
|
astroFileToCompileMetadata: Map<string, CompileMetadata>;
|
|
}
|
|
export interface CompileAstroResult extends Omit<CompileResult, 'map'> {
|
|
map: Rolldown.SourceMapInput;
|
|
}
|
|
export declare function compileAstro({ compileProps, astroFileToCompileMetadata, }: CompileAstroOption): Promise<CompileAstroResult>;
|
|
export {};
|