19 lines
798 B
TypeScript
19 lines
798 B
TypeScript
import type { PluggableList } from '@mdx-js/mdx/lib/core.js';
|
|
import type { Options as AcornOpts } from 'acorn';
|
|
import type { AstroConfig } from 'astro';
|
|
import matter from 'gray-matter';
|
|
import type { MdxjsEsm } from 'mdast-util-mdx';
|
|
interface FileInfo {
|
|
fileId: string;
|
|
fileUrl: string;
|
|
}
|
|
/** @see 'vite-plugin-utils' for source */
|
|
export declare function getFileInfo(id: string, config: AstroConfig): FileInfo;
|
|
/**
|
|
* Match YAML exception handling from Astro core errors
|
|
* @see 'astro/src/core/errors.ts'
|
|
*/
|
|
export declare function parseFrontmatter(code: string, id: string): matter.GrayMatterFile<string>;
|
|
export declare function jsToTreeNode(jsString: string, acornOpts?: AcornOpts): MdxjsEsm;
|
|
export declare function ignoreStringPlugins(plugins: any[]): PluggableList;
|
|
export {};
|