/** * Try to execute a function when mounted (in a component context). * If not in a component context, the function is still called. */ export declare function tryOnMounted(fn: () => void): void; /** * Try to execute a function before mount. * Runs the function immediately. */ export declare function tryOnBeforeMount(fn: () => void): void; /** * Try to register an unmount callback. Fails silently outside component context. */ export declare function tryOnUnmounted(fn: () => void): void; /** * Try to register a before-unmount callback. */ export declare function tryOnBeforeUnmount(fn: () => void): void; /** * Try to run a function when the current scope is disposed. */ export declare function tryOnScopeDispose(fn: () => void): void;