UNPKG

@promptbook/node

Version:

Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action

22 lines (21 loc) 865 B
/// <reference types="react" /> import type { SetUploadItems, UpdateUploadItem, UploadItem, UploadStats } from './bookEditorMonacoUploadTypes'; /** * Updates one upload item while leaving every other item untouched. * * @private function of BookEditorMonaco */ export declare function replaceUploadItemById(uploadItems: ReadonlyArray<UploadItem>, uploadId: string, updateUploadItem: (uploadItem: UploadItem) => UploadItem): Array<UploadItem>; /** * Internal upload item state shared by Monaco upload helpers. * * @private function of BookEditorMonaco */ export declare function useBookEditorMonacoUploadItemsState(): { uploadItems: UploadItem[]; uploadItemsRef: import("react").RefObject<UploadItem[]>; setUploadItems: SetUploadItems; updateUploadItem: UpdateUploadItem; uploadStats: UploadStats; activeUploadItems: UploadItem[]; };