UNPKG

@promptbook/remote-server

Version:

Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action

33 lines (32 loc) 1.05 kB
import type { editor } from 'monaco-editor'; /** * Type describing monaco editor. */ type MonacoEditor = typeof import('monaco-editor'); /** * Type describing book editor monaco diagnostic. */ type BookEditorMonacoDiagnostic = { readonly startLineNumber: number; readonly startColumn: number; readonly endLineNumber: number; readonly endColumn: number; readonly message: string; readonly source?: string; readonly severity?: 'error' | 'warning' | 'info' | 'hint'; }; /** * Props for use book editor monaco diagnostics. */ type UseBookEditorMonacoDiagnosticsProps = { readonly monaco: MonacoEditor | null; readonly editor: editor.IStandaloneCodeEditor | null; readonly diagnostics?: ReadonlyArray<BookEditorMonacoDiagnostic>; }; /** * Synchronizes Monaco markers with the diagnostics provided to `BookEditorMonaco`. * * @private function of BookEditorMonaco */ export declare function useBookEditorMonacoDiagnostics({ editor, monaco, diagnostics }: UseBookEditorMonacoDiagnosticsProps): void; export {};