rehype-mdx-auto-import/index.d.ts

26 lines
588 B
TypeScript
Raw Permalink Normal View History

2023-02-16 23:45:09 +09:00
export = AutoImport;
/**
* @typedef {{
* from: string
* import?: (
* string | {import: string, as: string}
* )[]
* default?: string
* namespace?: string
* }} ImportEntry
*/
/** @type {import('unified').Plugin<ImportEntry[], import('hast').Root>} */
declare const AutoImport: import('unified').Plugin<ImportEntry[], import('hast').Root>;
declare namespace AutoImport {
export { ImportEntry };
}
type ImportEntry = {
from: string;
import?: (string | {
import: string;
as: string;
})[];
default?: string;
namespace?: string;
};