react-native-mask-segment-c.../dist/utils/exportUtils.d.ts
a1518 8bc66a4ee9
Some checks failed
Publish to npm / publish (push) Has been cancelled
refactor: remove Chinese, add build obfuscation, polish README
- 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>
2026-07-01 19:07:32 -07:00

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;
}>;