Files
NapCatQQ/.pnpm-store/v3/files/23/045d49ca3205bd66222d000742ec3836297d5609cc436ad34d920f819f4f7c5c29e966fe7b639ba0cc2569aea69a4d1108cab99edb8b79549df97c20fca257
T
TanTan e311ca3275
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

35 lines
1.4 KiB
Plaintext

import { AttributorStore, BlockBlot, EmbedBlot } from 'parchment';
import type { Blot, Parent } from 'parchment';
import Delta from 'quill-delta';
declare class Block extends BlockBlot {
cache: {
delta?: Delta | null;
length?: number;
};
delta(): Delta;
deleteAt(index: number, length: number): void;
formatAt(index: number, length: number, name: string, value: unknown): void;
insertAt(index: number, value: string, def?: unknown): void;
insertBefore(blot: Blot, ref?: Blot | null): void;
length(): number;
moveChildren(target: Parent, ref?: Blot | null): void;
optimize(context: {
[key: string]: any;
}): void;
path(index: number): [Blot, number][];
removeChild(child: Blot): void;
split(index: number, force?: boolean | undefined): Blot | null;
}
declare class BlockEmbed extends EmbedBlot {
attributes: AttributorStore;
domNode: HTMLElement;
attach(): void;
delta(): Delta;
format(name: string, value: unknown): void;
formatAt(index: number, length: number, name: string, value: unknown): void;
insertAt(index: number, value: string, def?: unknown): void;
}
declare function blockDelta(blot: BlockBlot, filter?: boolean): Delta;
declare function bubbleFormats(blot: Blot | null, formats?: Record<string, unknown>, filter?: boolean): Record<string, unknown>;
export { blockDelta, bubbleFormats, BlockEmbed, Block as default };