import { LitElement } from 'lit';
import { DataGridField } from '../data-grid/data-grid-field.js';
import { ColumnConfig, GristRecord } from '../types.js';
export declare class OxGristEditor extends LitElement {
static styles: import("lit").CSSResult[];
/**
* 이 편집기가 **팝업을 여나.**
*
* ── 왜 필요한가 (2026-09-05) ────────────────────────────────────────────
* 팝업으로 고치는 칸은 글자 칸과 똑같이 생겼다. 열어 보기 전에는 고칠 수 있는지도, 어떻게
* 고치는지도 모른다. 사용자의 말 그대로 — 「실제 더블클릭을 하기 전에는 모르는 막막함」.
*
* 그래서 그런 칸에는 표식을 둔다. 어느 칸이 그런지는 **편집기가 스스로 밝힌다** — 칸이
* 목록을 두고 판단하면 팝업 편집기가 새로 생길 때마다 그 목록을 고쳐야 하고, 그러면
* 반드시 빠뜨린다.
*
* 팝업을 여는 편집기가 이 값을 참으로 둔다. 표식만 뜻한다 — 무엇을 커밋하는지는 `_entered` 가 정한다.
*/
static opensPopup: boolean;
value?: any;
column: ColumnConfig;
record: GristRecord;
rowIndex?: number;
field?: DataGridField;
row?: number;
protected _dirtyValue?: any;
/**
* The control the user entered something into since the editor opened, or none. Only that is ever committed:
* an editor's initial value is not an edit, and a control it cannot read (a popup editor's
) has nothing
* to commit - its popup's confirmation does (address-centralization-problem-2026-10-19 §7 D6).
*/
private _entered?;
render(): import("lit-html").TemplateResult<1>;
get editor(): HTMLElement | null;
get inlineEditable(): boolean;
firstUpdated(): Promise;
/**
* Name the editor. Every editor passes through this one place.
*
* With role=gridcell on the cell, a value being read is announced together with its column
* header. Opening an editor puts a real input in that spot and moves focus into it, and what
* assistive tech then reads is the input, not the cell — the column header does not carry over.
* All that is left is "edit text, blank".
*
* The name comes from the column definition (columnText). There are more than fifteen editors;
* leaving each to name itself means the next one added will miss it. So it is done once here, in
* the common ancestor.
*
* A name the caller already set is left alone.
*/
protected nameEditor(): void;
select(): void;
focus(): void;
formatForEditor(value: any): any;
formatFromEditor(value: any): any;
_onfocusout(): void;
/** Commit the active control's buffer before checking whether navigation would discard an edit. */
flush(): void;
_onchange(e: Event): void;
_onkeydown(e: Event): void;
_onclick(e: Event): void;
_ondblclick(e: Event): void;
get editorTemplate(): import("lit-html").TemplateResult<1>;
}