database-petani-mobile/node_modules/@base44/vite-plugin/dist/processors/shared-utils.d.ts
2026-02-23 16:39:35 +07:00

19 lines
1.0 KiB
TypeScript

import type { NodePath } from "@babel/traverse";
import type * as t from "@babel/types";
export declare class JSXAttributeUtils {
private types;
constructor(types: typeof t);
hasAttribute(path: NodePath<t.JSXOpeningElement>, attributeName: string): boolean;
addStringAttribute(path: NodePath<t.JSXOpeningElement>, attributeName: string, value: string): void;
addExpressionAttribute(path: NodePath<t.JSXOpeningElement>, attributeName: string, expression: t.Expression): void;
}
export declare class StaticValueUtils {
private types;
constructor(types: typeof t);
isPrimitiveLiteral(path: NodePath<t.Node>): boolean;
isStaticValue(path: NodePath<t.Node>, visited?: Set<string>): boolean;
isStaticIdentifier(path: NodePath<t.Identifier>, visited?: Set<string>): boolean;
isStaticObject(path: NodePath<t.ObjectExpression>, visited?: Set<string>): boolean;
isStaticArrayExpression(arrayExpression: NodePath<t.ArrayExpression>, visited?: Set<string>): boolean;
}
//# sourceMappingURL=shared-utils.d.ts.map