1 | type CallbackDetails = {
|
2 | callback: (frameInfo: FrameInfo) => void;
|
3 | startTime: number | null;
|
4 | };
|
5 | export type FrameInfo = {
|
6 | timestamp: number;
|
7 | timeSincePreviousFrame: number | null;
|
8 | timeSinceFirstFrame: number;
|
9 | };
|
10 | export interface FrameCallbackRegistryUI {
|
11 | frameCallbackRegistry: Map<number, CallbackDetails>;
|
12 | activeFrameCallbacks: Set<number>;
|
13 | previousFrameTimestamp: number | null;
|
14 | runCallbacks: (callId: number) => void;
|
15 | nextCallId: number;
|
16 | registerFrameCallback: (callback: (frameInfo: FrameInfo) => void, callbackId: number) => void;
|
17 | unregisterFrameCallback: (callbackId: number) => void;
|
18 | manageStateFrameCallback: (callbackId: number, state: boolean) => void;
|
19 | }
|
20 | export declare const prepareUIRegistry: import("../commonTypes").WorkletFunction<[], void>;
|
21 | export {};
|
22 |
|
\ | No newline at end of file |