Some checks failed
Publish to npm / publish (push) Has been cancelled
- Remove all Chinese characters from src/, example/, ios/, patches/, tests/ - Add esbuild-based build obfuscation (minify + identifier mangle + no sourcemaps) - Drop src/ from npm publish, only ship minified dist/ - Remove source maps and declaration maps from build output - Add README icons and visual polish throughout - Fix broken Table of Contents anchor links in README Co-authored-by: Cursor <cursoragent@cursor.com>
20 lines
828 B
TypeScript
20 lines
828 B
TypeScript
import type { BgrColor } from '../components/MaskSegmentCanvas.types';
|
|
/** Stable fingerprint for painted region colors — used to reuse cached exports. */
|
|
export declare function paintedRegionsFingerprint(painted: Map<number, BgrColor>): string;
|
|
export declare function writePngBase64ToFile(filePath: string, base64: string): Promise<void>;
|
|
export declare function writePngBytesToFile(filePath: string, bytes: Uint8Array): Promise<void>;
|
|
export declare function stripFilePrefix(uri: string): string;
|
|
export declare function resolveExportResultForDestDir(cached: {
|
|
filePath: string;
|
|
width: number;
|
|
height: number;
|
|
paintedCount: number;
|
|
previewPath?: string;
|
|
}, destDir?: string): Promise<{
|
|
filePath: string;
|
|
width: number;
|
|
height: number;
|
|
paintedCount: number;
|
|
previewPath?: string;
|
|
}>;
|