<commit_before>import * as React from "react";
import * as Quill from "quill";

declare namespace ReactQuill {
	export interface UnprivilegedEditor {
		getLength(): number;
		getText(index?: number, length?: number): string;
		getHTML(): string;
		getBounds(index: number, length?: number): Quill.BoundsStatic;
		getSelection(focus?: boolean): Quill.RangeStatic;
		getContents(index?: number, length?: number): Quill.DeltaStatic;
	}

	export interface ComponentProps {
		id?: string;
		className?: string;
		theme?: string;
		style?: React.CSSProperties;
		readOnly?: boolean;
		value?: string | Quill.Delta;
		defaultValue?: string | Quill.Delta;
		placeholder?: string;
		tabIndex?: number;
		bounds?: string | HTMLElement;
		onChange?: (
			content: string,
			delta: Quill.Delta,
			source: Quill.Sources,
			editor: UnprivilegedEditor
		) => void;
		onChangeSelection?: (
			range: Quill.RangeStatic,
			source: Quill.Sources,
			editor: UnprivilegedEditor
		) => void;
		onFocus?: (
			range: Quill.RangeStatic,
			source: Quill.Sources,
			editor: UnprivilegedEditor
		) => void;
		onBlur?: (<commit_msg>fix(types.d.ts): add key `scrollingContainer` to provide typing for feature added in https://github.com/zenoamaro/react-quill/pull/365 (#402)<commit_after>import * as React from "react";
import * as Quill from "quill";

declare namespace ReactQuill {
	export interface UnprivilegedEditor {
		getLength(): number;
		getText(index?: number, length?: number): string;
		getHTML(): string;
		getBounds(index: number, length?: number): Quill.BoundsStatic;
		getSelection(focus?: boolean): Quill.RangeStatic;
		getContents(index?: number, length?: number): Quill.DeltaStatic;
	}

	export interface ComponentProps {
		id?: string;
		className?: string;
		theme?: string;
		style?: React.CSSProperties;
		readOnly?: boolean;
		value?: string | Quill.Delta;
		defaultValue?: string | Quill.Delta;
		placeholder?: string;
		tabIndex?: number;
		bounds?: string | HTMLElement;
		scrollingContainer?: string | HTMLElement;
		onChange?: (
			content: string,
			delta: Quill.Delta,
			source: Quill.Sources,
			editor: UnprivilegedEditor
		) => void;
		onChangeSelection?: (
			range: Quill.RangeStatic,
			source: Quill.Sources,
			editor: UnprivilegedEditor
		) => void;
		onFocus?: (
			range: Quill.RangeStatic,
			source: Quill.Sources,
			editor: UnprivilegedEditor
		) => void;
		onBlur?: (
{'fraction_non_alphanumeric': 0.12734864300626306, 'fraction_numerical': 0.0025052192066805845, 'mean_word_length': 4.533487297921478, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6130924', 'n_tokens_mistral': 850, 'n_tokens_neox': 754, 'n_words': 197}