/** * Thin JS wrapper around the `RNImageStitcherFileUtils` native * module (defined in `ios/Sources/RNImageStitcher/FileBridge.{swift,m}` * and `android/src/main/.../FileBridge.kt`). Internal — not * re-exported from `src/index.ts`. * * Two operations: * - `moveFile(from, to)` — move a file, creating the destination's * parent directory tree on demand. Used to relocate * vision-camera's auto-named tmp output into the lib's canonical * capture dir. * - `getDefaultCaptureDir()` — resolve (and create on first call) * the canonical default capture directory: * * iOS: `/react-native-image-stitcher/` * Android: `/react-native-image-stitcher/` * * Predictable, evictable-by-OS, NOT backed up. Captures live * here until the host moves them somewhere durable (which is * intentional — the lib doesn't promise persistence beyond the * immediate capture flow). */ /** * Move a file via the native bridge. Both paths accepted in bare * or `file://`-prefixed form. Resolves to the bare destination * path on success. Throws on disk failure. */ export declare function moveFile(from: string, to: string): Promise; /** * Copy a file via the native bridge, leaving the source in place. Both paths * accepted in bare or `file://`-prefixed form. Resolves to the bare * destination path on success. Throws on disk failure. Useful when a host * needs a distinct output path for an in-place native op (e.g. perspective- * cropping a copy of a captured photo so the original survives and the result * lands on a fresh URI, avoiding image-cache collisions). */ export declare function copyFile(from: string, to: string): Promise; /** * Resolve the canonical default capture directory. Lazy + * memoised — the native side creates the dir on first call, JS * caches the result for the rest of the app session. */ export declare function getDefaultCaptureDir(): Promise; /** * Compose a default filename for a tap-photo capture, using a * millisecond Unix timestamp for ordering. Pure helper; no I/O. */ export declare function defaultPhotoFilename(): string; /** * Same as `defaultPhotoFilename` but for panoramas. */ export declare function defaultPanoramaFilename(): string; //# sourceMappingURL=files.d.ts.map