@promptbook/remote-server
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
18 lines (17 loc) • 690 B
TypeScript
/**
* One callback observing the viewport visibility of an avatar canvas.
*
* @private utility of the avatar rendering system
*/
type AvatarVisibilityListener = (isVisible: boolean) => void;
/**
* Observes one avatar element and notifies the caller when it enters or leaves the viewport.
*
* @param element Observed avatar element.
* @param avatarVisibilityListener Listener notified with the current visibility state.
* @returns Cleanup function that stops observing the element.
*
* @private utility of the avatar rendering system
*/
export declare function observeAvatarVisibility(element: Element, avatarVisibilityListener: AvatarVisibilityListener): () => void;
export {};