rspress-plugin-devkit
Version:
Rspress plugin develop kit.
19 lines (18 loc) • 704 B
TypeScript
import type { RspressPlugin } from '@rspress/shared';
import type { Content } from 'mdast';
import type { Dictionary } from 'util-ts-types';
type RsbuildConfig = NonNullable<RspressPlugin['builderConfig']>;
export interface ComponentRegistration<ComponentMetaProvider = void> {
componentPath: string;
propsProvider?: (input: ComponentMetaProvider) => Dictionary<any>;
childrenProvider?: (input: ComponentMetaProvider) => Content[];
}
export declare class RemarkPluginFactoryBase {
private readonly baseOptions;
constructor(baseOptions: {
components: ComponentRegistration<any>[];
});
get mdxComponents(): string[];
get builderConfig(): RsbuildConfig;
}
export {};