import { Editor } from '../core/Editor.js';
import { Query, QueryResult } from '@superdoc/document-api';
/**
 * Executes a document query against the editor's current state.
 *
 * Supports block-node selectors (by type) and text selectors (literal/regex)
 * with optional `within` scoping and offset/limit pagination.
 *
 * @param editor - The editor instance to query.
 * @param query - The query specifying what to find.
 * @returns Query result with matches, total count, and any diagnostics.
 * @throws {Error} If the editor's search command is unavailable (text queries only).
 */
export declare function findAdapter(editor: Editor, query: Query): QueryResult;
//# sourceMappingURL=find-adapter.d.ts.map