export declare const DESIGN_STAMP_ATTR = "data-pylon-src"; /** True when the design stamp should be active for this process. */ export declare function isDesignMode(env?: Record): boolean; /** Directories (relative to the project root) whose JSX gets stamped. */ export declare const DESIGN_STAMP_DIRS: readonly ["app", "components", ".design"]; /** * Regex matching absolute paths of the `.tsx` / `.jsx` files under the scoped * directories of `root`. Used as the `onLoad` filter so files outside the * scope never reach the transform. */ export declare function designStampScopePattern(root: string): RegExp; /** Project-relative path with forward slashes, for the attribute value. */ export declare function relativeSourcePath(root: string, absPath: string): string; /** * Add `data-pylon-src="::"` to every DOM element in a * JSX/TSX source. `line` and `col` are 1-based and point at the opening `<`. * Returns the source unchanged when no element needs a stamp. */ export declare function stampJsxSource(source: string, relPath: string): string; /** * Register the Bun plugin for the project rooted at `root`. Only the files * matched by `designStampScopePattern(root)` are transformed. */ export declare function registerDesignStampPlugin(root?: string): void;