nicecode-v2/packages/biz/lib/useSocket/index.d.ts
2024-01-16 11:44:26 +08:00

27 lines
816 B
TypeScript

export declare const SocketApi: {
CameraTaskStatue: string;
DeviceStatus: string;
SubscribeSolutionDeploy: string;
SubscribeTasksSummary: string;
MonitorSubscribeResult: string;
MonitorSubscribeStatus: string;
SubscribeArchiveGroupUpload: string;
SubscribeJointTask: string;
SubscribeGroupFragment: string;
SubscribeGroup: string;
SubscribeStreamEvent: string;
};
type ApiKeys = keyof typeof SocketApi;
declare const _default: (topic: ApiKeys, iterator?: any, opt?: {
req?: {
[key: string]: any;
} | undefined;
throttle?: number | undefined;
parseData?: boolean | undefined;
beforeLoopTmp?: Function | undefined;
shouldBreak: boolean;
forceRefresh: any;
close?: boolean | undefined;
} | undefined) => void;
export default _default;