UNPKG

camstreamerlib

Version:

Helper library for CamStreamer ACAP applications.

78 lines (77 loc) 3.1 kB
import { z } from 'zod'; export declare const booleanSchema: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>; export declare const audioChannelSchema: z.ZodUnion<[z.ZodLiteral<"mono">, z.ZodLiteral<"stereo">]>; export type TAudioChannel = z.infer<typeof audioChannelSchema>; export declare const audioChannelCountSchema: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>]>; export type TAudioChannelCount = z.infer<typeof audioChannelCountSchema>; export declare const h264ProfileSchema: z.ZodUnion<[z.ZodLiteral<"high">, z.ZodLiteral<"main">, z.ZodLiteral<"baseline">]>; export type TH264Profile = z.infer<typeof h264ProfileSchema>; export declare const flashStorageTypeSchema: z.ZodLiteral<"FLASH">; export declare const sdCardStorageTypeSchema: z.ZodLiteral<"SD_DISK">; export declare const storageTypeSchema: z.ZodUnion<[z.ZodLiteral<"SD_DISK">, z.ZodLiteral<"FLASH">]>; export type TStorageType = z.infer<typeof storageTypeSchema>; export declare const networkCameraListSchema: z.ZodArray<z.ZodObject<{ name: z.ZodString; ip: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; ip: string; }, { name: string; ip: string; }>, "many">; export type TNetworkCameraList = z.infer<typeof networkCameraListSchema>; export type TNetworkCamera = z.infer<typeof networkCameraListSchema>[number]; export declare const keyboardShortcutSchema: z.ZodNullable<z.ZodString>; export declare const keyboardShortcutsSchema: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>; export type TKeyboardShortcut = z.infer<typeof keyboardShortcutSchema>; export type TKeyboardShortcuts = z.infer<typeof keyboardShortcutsSchema>; export type TProxyTarget = { ip: string; mdnsName: string; port: number; user: string; pass: string; }; export type TProxyParams = { path: string; target: TProxyTarget; }; export type THttpRequestOptions = { timeout?: number; proxyParams?: TProxyParams; }; export type TCameraImageConfig = { camera?: string; resolution?: string; compression?: number; overlays?: string; [key: string]: string | number | undefined; }; export declare const bitrateModeSchema: z.ZodUnion<[z.ZodLiteral<"VBR">, z.ZodLiteral<"MBR">, z.ZodLiteral<"ABR">]>; export type TBitrateMode = z.infer<typeof bitrateModeSchema>; export declare const bitrateVapixParamsSchema: z.ZodObject<{ bitrateMode: z.ZodUnion<[z.ZodLiteral<"VBR">, z.ZodLiteral<"MBR">, z.ZodLiteral<"ABR">]>; maximumBitRate: z.ZodNumber; retentionTime: z.ZodNumber; bitRateLimit: z.ZodNumber; }, "strip", z.ZodTypeAny, { bitrateMode: "VBR" | "MBR" | "ABR"; maximumBitRate: number; retentionTime: number; bitRateLimit: number; }, { bitrateMode: "VBR" | "MBR" | "ABR"; maximumBitRate: number; retentionTime: number; bitRateLimit: number; }>; export type TBitrateVapixParams = z.infer<typeof bitrateVapixParamsSchema>; export type FileLike = typeof File extends { prototype: infer T; } ? T : { name: string; size: number; type: string; }; export declare const fileSchema: z.ZodType<File, z.ZodTypeDef, File>;