Files
NapCatQQ/.pnpm-store/v3/files/55/68338b2d8f6707868b94fa0fc140a41abbc38e22210d8f429a71dcd3c793dcba0ec916e070d1c917185d139bcdaee4216eb41a967acfe422c27b69e28172b1
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

27 lines
924 B
Plaintext

import { EmbedBlot } from 'parchment';
import type { ScrollBlot } from 'parchment';
import type Selection from '../core/selection.js';
import type { EmbedContextRange } from './embed.js';
declare class Cursor extends EmbedBlot {
static blotName: string;
static className: string;
static tagName: string;
static CONTENTS: string;
static value(): undefined;
selection: Selection;
textNode: Text;
savedLength: number;
constructor(scroll: ScrollBlot, domNode: HTMLElement, selection: Selection);
detach(): void;
format(name: string, value: unknown): void;
index(node: Node, offset: number): number;
length(): number;
position(): [Text, number];
remove(): void;
restore(): EmbedContextRange | null;
update(mutations: MutationRecord[], context: Record<string, unknown>): void;
optimize(context?: unknown): void;
value(): string;
}
export default Cursor;