import type { FromBlockSnapshotPayload, FromBlockSnapshotResult, FromPageSnapshotPayload, FromPageSnapshotResult, FromSliceSnapshotPayload, FromSliceSnapshotResult, ToBlockSnapshotPayload, ToPageSnapshotPayload } from '@blockeditor/store';
import { type AssetsManager } from '@blockeditor/store';
import { BaseAdapter } from '@blockeditor/store';
import { type BlockSnapshot, type PageSnapshot, type SliceSnapshot } from '@blockeditor/store';
export type Html = string;
type HtmlToSliceSnapshotPayload = {
    file: Html;
    assets?: AssetsManager;
    blockVersions: Record<string, number>;
    pageVersion: number;
    workspaceVersion: number;
    workspaceId: string;
    pageId: string;
};
export declare class HtmlAdapter extends BaseAdapter<Html> {
    fromPageSnapshot(payload: FromPageSnapshotPayload): Promise<FromPageSnapshotResult<string>>;
    fromBlockSnapshot(payload: FromBlockSnapshotPayload): Promise<FromBlockSnapshotResult<string>>;
    fromSliceSnapshot(payload: FromSliceSnapshotPayload): Promise<FromSliceSnapshotResult<string>>;
    toPageSnapshot(payload: ToPageSnapshotPayload<string>): Promise<PageSnapshot>;
    toBlockSnapshot(payload: ToBlockSnapshotPayload<string>): Promise<BlockSnapshot>;
    toSliceSnapshot(payload: HtmlToSliceSnapshotPayload): Promise<SliceSnapshot | null>;
    private _astToHtml;
    private _htmlToAst;
    private _traverseSnapshot;
    private _traverseHtml;
    private _deltaToHigglightHasts;
    private _deltaToHast;
    private _hastToDeltaSpreaded;
    private _hastToDelta;
}
export {};
//# sourceMappingURL=html.d.ts.map