import type { ActionDefinition } from "@tooee/commands"; import type { StatusBarItem } from "@tooee/layout"; import type { DecorationLayer } from "@tooee/renderers"; import type { DocumentController, DocumentRowAdapter } from "@tooee/shell"; import type { AnyContent } from "../types.js"; interface ContentDocumentProps { actions?: ActionDefinition[]; content: AnyContent; decorations: DecorationLayer[]; textContent: string; } interface ContentDocumentOptions { buildStatusItems?: (document: DocumentController) => StatusBarItem[]; contextMenu?: boolean; multiSelect: boolean; preserveCursorByKey?: boolean; statusItems?: StatusBarItem[]; } /** Shared document state used by each built-in content subview. */ export interface ContentDocumentResult { document: DocumentController; showLineNumbers: boolean; statusItems: StatusBarItem[]; } /** Build the command, controller, and status state shared by content subviews. */ export declare const useContentDocument: (rows: readonly T[], adapter: DocumentRowAdapter, { actions, content, decorations, textContent }: ContentDocumentProps, options: ContentDocumentOptions) => ContentDocumentResult; export {}; //# sourceMappingURL=use-content-document.d.ts.map