chat-about-video
Version:
Chat about a video clip using ChatGPT hosted in OpenAI or Azure, or Gemini provided by Google
24 lines • 1.36 kB
TypeScript
import type { EffectiveExtractVideoFramesOptions, ExtractVideoFramesOptions, StorageOptions } from './types';
/**
* Calculate the effective values for ExtractVideoFramesOptions by combining the default values and the values provided
* @param options the options containing the values provided
* @returns The effective values for ExtractVideoFramesOptions
*/
export declare function effectiveExtractVideoFramesOptions(options?: ExtractVideoFramesOptions): EffectiveExtractVideoFramesOptions;
/**
* Calculate the effective values for StorageOptions by combining the default values and the values provided
* @param options the options containing the values provided
* @returns The effective values for StorageOptions
*/
export declare function effectiveStorageOptions(options: StorageOptions): Required<Pick<StorageOptions, 'uploader'>> & StorageOptions;
/**
* Find the common parent path of the given paths.
* If there is no common parent path, then the root path of the current process will be returned.
* @param paths Input paths to find the common parent path for. It can be absolute or relative paths.
* @returns The common parent path and the relative paths from the common parent.
*/
export declare function findCommonParentPath(paths: string[]): {
commonParent: string;
relativePaths: string[];
};
//# sourceMappingURL=utils.d.ts.map