import type { ImageLike } from '@happyvertical/smrt-images/svelte'; import { type ContentEditorAsset, type ContentEditorFormData, type ContentEditorInitialContent } from './content-editor-form.js'; export interface CreateContentEditorStateOptions { content?: ContentEditorInitialContent | null; } export type ContentEditorFieldChange = Partial & Record; export declare class ContentEditorState { private _form; private _fieldUndoStack; private _lastAppliedFields; private _showUndoBanner; constructor(options?: CreateContentEditorStateOptions); get form(): ContentEditorFormData; get snapshot(): { referenceIds: string[]; references: import("./content-editor-form.js").ContentEditorReference[]; assetIds: string[]; assets: ContentEditorAsset[]; publish_date: string | null; }; get savePayload(): import("./content-editor-form.js").ContentEditorSavePayload; get showUndoBanner(): boolean; get lastAppliedFields(): string[]; get undoDepth(): number; reset(content?: ContentEditorInitialContent | null): void; update(change: ContentEditorFieldChange): void; applyFieldUpdates(fields: ContentEditorFieldChange): void; undoLastFieldUpdate(): void; setReferenceIds(referenceIds: string[]): void; addAsset(asset: ContentEditorAsset | ImageLike | Record): void; removeAsset(assetId: string): void; setThumbnailAsset(assetId: string | null): void; } export declare function createContentEditorState(options?: CreateContentEditorStateOptions): ContentEditorState; //# sourceMappingURL=content-editor-state.svelte.d.ts.map