/** * Penpot REST Client — bridges Penpot design files into the Memoire * design system registry, same output shape as the Figma REST client. * * Penpot uses an RPC-style API (not REST), authenticated via personal * access tokens. Supports both Penpot Cloud and self-hosted instances. * * Usage: * memi connect --penpot https://design.penpot.app * memi pull --penpot */ import type { DesignToken, DesignComponent, DesignStyle } from "../engine/registry.js"; export interface PenpotConfig { baseUrl: string; token: string; fileId?: string; } export interface PenpotPullResult { tokens: DesignToken[]; components: DesignComponent[]; styles: DesignStyle[]; source: "penpot"; fileId: string; fileName: string; } export declare function getPenpotProfile(config: PenpotConfig): Promise<{ email: string; fullname: string; }>; interface PenpotFile { id: string; name: string; data: { colors?: Record; typographies?: Record; }>; components?: Record; }; tokensLib?: { sets?: Record; }>; }; } export declare function getPenpotFile(config: PenpotConfig, fileId: string): Promise; export declare function pullFromPenpot(config: PenpotConfig): Promise; export {};