UNPKG

vue-spur-monocle

Version:

> **Note:** This is **not** an official package. For the official Monocle documentation, please visit: [https://docs.spur.us/monocle](https://docs.spur.us/monocle)

18 lines (17 loc) 677 B
import { MonocleEvents } from 'spur-monocle-manager'; export interface UseMonocleComposable { init: () => Promise<void>; getAssessment: () => Promise<any>; on: (event: MonocleEvents, handler: (detail: any) => void) => void; off: (event: MonocleEvents, handler: (detail: any) => void) => void; } /** * Composable to access the Monocle SDK instance * @throws if the instance hasn't been provided */ export declare function useMonocle(): { init: () => Promise<void>; getAssessment: () => Promise<string>; on: (event: MonocleEvents, handler: (detail: any) => void) => void; off: (event: MonocleEvents, handler: (detail: any) => void) => void; };