import { ComponentSchema } from './DocumentEditor/component-blocks/api'; import { FormatInfo } from './app/path-utils'; import { TreeNode } from './app/trees'; import { Config } from './src'; export declare function useUpsertItem(args: { state: unknown; initialFiles: string[] | undefined; schema: Record; storage: Config['storage']; format: FormatInfo; currentTree: Map; currentLocalTreeSha: string | undefined; basePath: string; }): readonly [{ kind: 'idle'; } | { kind: 'updated'; } | { kind: 'loading'; } | { kind: 'error'; error: Error; } | { kind: 'needs-new-branch'; reason: string; }, (override?: { sha: string; branch: string; }) => Promise, () => void]; export declare function useDeleteItem(args: { basePath: string; initialFiles: string[]; currentTree: Map; storage: Config['storage']; }): readonly [{ kind: 'idle'; } | { kind: 'updated'; } | { kind: 'loading'; } | { kind: 'error'; error: Error; }, () => Promise]; export declare function toFiles(value: unknown, schema: ComponentSchema): Promise<{ value: unknown; extraFiles: { path: string; contents: Uint8Array; }[]; }>;