Timeline Studio API Documentation - v0.26.0
    Preparing search index...
    • Хук для управления восстановлением медиафайлов при открытии проекта

      Returns {
          cancelMissingFilesDialog: () => void;
          currentPhase:
              | "error"
              | "completed"
              | "scanning"
              | "restoring"
              | "user_input";
          error: string;
          getMissingFiles: () => any;
          getRelocatedFiles: () => any;
          getRestorationReport: () => any;
          getRestorationStats: () => any;
          handleMissingFilesResolution: (
              resolved: {
                  action: "remove" | "found";
                  file: SavedMediaFile;
                  newPath?: string;
              }[],
          ) => Promise<{ foundFiles: MediaFile[]; removedFiles: SavedMediaFile[] }>;
          isRestoring: boolean;
          progress: number;
          resetRestoration: () => void;
          restorationResult: any;
          restoreProjectMedia: (
              mediaFiles: SavedMediaFile[],
              musicFiles: SavedMusicFile[],
              projectPath: string,
              options?: { autoResolve?: boolean; showDialog?: boolean },
          ) => Promise<
              {
                  needsUserInput: boolean;
                  restoredMedia: MediaFile[];
                  restoredMusic: MediaFile[];
                  result: ProjectRestorationResult;
              },
          >;
          showMissingFilesDialog: boolean;
          state: RestorationState;
      }