export function getComponent({ type, src, name }: string | undefined): string | undefined; export function canPreview({ type, src, name }: string | undefined): boolean;