UNPKG

458 BTypeScriptView Raw
1import { NodePath } from '@babel/core';
2import { ResolvedOptions } from '../types';
3export interface IntermediateStyle {
4 start: number;
5 end: number;
6 hostFilePath: string;
7 absoluteFilePath: string;
8 requirePath: string;
9 identifier: string;
10}
11export default function createStyleNode(path: NodePath<any>, identifier: string | undefined, { pluginOptions, file }: {
12 pluginOptions: ResolvedOptions;
13 file: any;
14}): IntermediateStyle;