import { AcApDocManager, AcApFindLayoutHit, AcApFindScope, AcApFindViewInsets } from '@mlightcad/cad-simple-viewer'; /** * Layout name for display. A layout can have an empty (or blank) name; the * caller's localized `unnamedLabel` is shown instead so no result row or * status note renders an empty string. Hit data keeps the real name. */ export declare function findLayoutDisplayName(name: string, unnamedLabel: string): string; /** Search state shown by the Find palette. */ export type MlFindState = 'idle' | 'done' | 'no-document'; /** * State and actions of the Find palette (FIND). * * Searches TEXT, MTEXT, attribute values and the text inside blocks, * dimensions, multileaders and tables of the whole drawing (all layouts) by * default, or of the active layout only when `currentLayoutOnly` is set. The * search is shared with cad-simple-ui-plugin * (`@mlightcad/cad-simple-viewer/find`) so both UIs behave identically. It runs * only when {@link MlFindApi.search} is called (Enter / Find button), never * while typing. {@link MlFindApi.navigateTo} activates the hit's layout when * needed, then zooms to the text and selects its entity. */ export declare function useFind(editor: AcApDocManager, options?: { /** * Canvas pixels covered by the palette (or other UI) when navigating, so * the hit is framed in the part of the drawing that stays visible. */ getInsets?: () => AcApFindViewInsets | undefined; }): { query: import('vue').Ref; matchCase: import('vue').Ref; currentLayoutOnly: import('vue').Ref; scope: import('vue').ComputedRef; hits: import('vue').ShallowRef; truncated: import('vue').Ref; state: import('vue').Ref; activeIndex: import('vue').Ref; layoutCount: import('vue').ComputedRef; unavailableLayout: import('vue').Ref; layoutUnavailable: import('vue').Ref; search: () => void; refresh: () => void; submit: (backwards?: boolean) => Promise; navigateTo: (index: number) => Promise; }; /** Return type of {@link useFind}. */ export type MlFindApi = ReturnType; //# sourceMappingURL=useFind.d.ts.map