export interface EditorImageUploadResult { src: string; alt?: string; } export type EditorImageUploadFn = (file: File) => Promise; /** * The shared editor's default image uploader: upload a picked / pasted / * dropped image File through the framework `upload-image` action and return the * hosted CDN URL. * * This is the upload function embedders pass to the shared image block so * any app gets a real uploading image block with zero per-app upload code. The * action re-hosts the bytes on the configured provider (Builder.io by default), * is session-scoped, and returns a stable `![alt](url)` source — so a plan's * inserted image autosaves as plain markdown through the existing * `update-rich-text` path with no new persistence channel. * * @throws when the file cannot be read, the action returns no URL, or upload is * not configured (with the action's "connect Builder.io" guidance). */ export declare const uploadEditorImage: EditorImageUploadFn; //# sourceMappingURL=upload-editor-image.d.ts.map