import type { Paint, RGBA } from "@figma/rest-api-spec"; import { CSSHexColor, CSSRGBAColor, SimplifiedFill } from "../services/simplify-node-response"; export type StyleId = `${string}_${string}` & { __brand: "StyleId"; }; export interface ColorValue { hex: CSSHexColor; opacity: number; } export declare function downloadFigmaImage(fileName: string, localPath: string, imageUrl: string): Promise; export declare function removeEmptyKeys(input: T): T; export declare function hexToRgba(hex: string, opacity?: number): string; export declare function convertColor(color: RGBA, opacity?: number): ColorValue; export declare function formatRGBAColor(color: RGBA, opacity?: number): CSSRGBAColor; export declare function generateVarId(prefix?: string): StyleId; export declare function generateCSSShorthand(values: { top: number; right: number; bottom: number; left: number; }, { ignoreZero, suffix, }?: { ignoreZero?: boolean; suffix?: string; }): string | undefined; export declare function parsePaint(raw: Paint): SimplifiedFill; export declare function isVisible(element: { visible?: boolean; }): boolean;