1 |
|
2 | import { MessageEvent } from "@charisma-ai/sdk";
|
3 | interface UseBackgroundVideoOptions {
|
4 | disabled?: boolean;
|
5 | }
|
6 | declare const useBackgroundVideo: ({ disabled }?: UseBackgroundVideoOptions) => {
|
7 | videoProps: {
|
8 | ref: import("react").RefObject<HTMLVideoElement>;
|
9 | src: string | undefined;
|
10 | autoPlay: boolean;
|
11 | loop: boolean;
|
12 | onEnded: () => void;
|
13 | style: {
|
14 | display: string;
|
15 | };
|
16 | };
|
17 | onMessage: (messageEvent: MessageEvent) => Promise<void>;
|
18 | };
|
19 | export declare type BackgroundVideoElementProps = ReturnType<typeof useBackgroundVideo>["videoProps"];
|
20 | export default useBackgroundVideo;
|