react-native-mask-segment-c.../dist/utils/exportUtils.d.ts
a1518 56738b1f06 feat: add MaskSegmentApp source code and config
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-26 00:23:52 -07:00

20 lines
869 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;
}>;
//# sourceMappingURL=exportUtils.d.ts.map