| 1 | import type { HybridObject } from 'react-native-nitro-modules'; |
| 2 | |
| 3 | export interface CactusFileSystem |
| 4 | extends HybridObject<{ ios: 'swift'; android: 'kotlin' }> { |
| 5 | // General |
| 6 | getCactusDirectory(): Promise<string>; |
| 7 | // File |
| 8 | fileExists(path: string): Promise<boolean>; |
| 9 | writeFile(path: string, content: string): Promise<void>; |
| 10 | readFile(path: string): Promise<string>; |
| 11 | deleteFile(path: string): Promise<void>; |
| 12 | // Model |
| 13 | modelExists(model: string): Promise<boolean>; |
| 14 | getModelPath(model: string): Promise<string>; |
| 15 | downloadModel( |
| 16 | model: string, |
| 17 | from: string, |
| 18 | callback?: (progress: number) => void |
| 19 | ): Promise<void>; |
| 20 | deleteModel(model: string): Promise<void>; |
| 21 | // Index |
| 22 | getIndexPath(name: string): Promise<string>; |
| 23 | } |
no outgoing calls
no test coverage detected