UNPKG

990 BTypeScriptView Raw
1import { CodeEditor } from '@jupyterlab/codeeditor';
2import { EditorSearchProvider } from '@jupyterlab/codemirror';
3import { IBaseSearchProvider } from '@jupyterlab/documentsearch';
4import { ICellModel } from './model';
5import { Cell } from './widget';
6/**
7 * Class applied on highlighted search matches
8 */
9export declare const SELECTED_HIGHLIGHT_CLASS = "jp-mod-selected";
10/**
11 * Search provider for cells.
12 */
13export declare class CellSearchProvider extends EditorSearchProvider<ICellModel> implements IBaseSearchProvider {
14 protected cell: Cell<ICellModel>;
15 constructor(cell: Cell<ICellModel>);
16 /**
17 * Text editor
18 */
19 protected get editor(): CodeEditor.IEditor | null;
20 /**
21 * Editor content model
22 */
23 protected get model(): ICellModel;
24}
25/**
26 * Factory to create a cell search provider
27 *
28 * @param cell Cell widget
29 * @returns Cell search provider
30 */
31export declare function createCellSearchProvider(cell: Cell<ICellModel>): CellSearchProvider;