{"version":3,"file":"types.cjs","sources":["../../../src/lib/stylis/types.ts"],"sourcesContent":["import type { COMMENT, DECLARATION, IMPORT, KEYFRAMES, LAYER, NAMESPACE, RULESET } from \"./enum.ts\";\n\nexport type Element = {\n  parent: Element | null;\n  root: Element | null;\n  value: string;\n  length: number;\n  return: string;\n  line: number;\n  column: number;\n  siblings: Element[];\n} & (\n  | {\n      type: typeof COMMENT | typeof DECLARATION;\n      children: string;\n      props: string;\n    }\n  | {\n      type: typeof RULESET | typeof KEYFRAMES | typeof LAYER;\n      children: Element[];\n      props: string[];\n    }\n  | {\n      type: typeof IMPORT | typeof NAMESPACE;\n      children: [];\n      props: [];\n    }\n);\n\nexport type Middleware = (\n  element: Element,\n  index: number,\n  children: Element[],\n  callback: Middleware,\n) => string | void;\n\nexport default {};\n"],"names":["types"],"mappings":"oEAoCA,IAAAA,EAAe"}