UNPKG

413 BTypeScriptView Raw
1import { NodePath } from '@babel/core';
2import * as t from '@babel/types';
3import { NodeStyleMap, ResolvedOptions, Style, StyleType } from '../types';
4export interface Dependency {
5 imported: string;
6 source: string;
7 type?: StyleType;
8}
9export default function resolveDependency(path: NodePath<t.Expression>, nodeMap: NodeStyleMap, localStyle: Style, pluginOptions: ResolvedOptions): Dependency | null;