import z from 'zod'; export declare const file: z.ZodObject<{ _id: z.ZodString; name: z.ZodString; mimetype: z.ZodString; encoding: z.ZodString; sizeBytes: z.ZodOptional; durationSeconds: z.ZodOptional; url: z.ZodString; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { url: string; _id: string; name: string; mimetype: string; encoding: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sizeBytes?: number | undefined; durationSeconds?: number | undefined; }, { url: string; _id: string; name: string; mimetype: string; encoding: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sizeBytes?: number | undefined; durationSeconds?: number | undefined; }>; export type File = z.infer; export interface FileService { create(request: CreateFileRequest): Promise; createFromUrl(request: CreateFromUrlRequest): Promise; createFromYouTube(request: CreateFileFromYouTubeRequest): Promise; get(request: GetFileRequest): Promise; getByUrl(request: GetFileByURLRequest): Promise; list(request: ListFilesRequest): Promise; } /** ****************************************************************************** * Create File ******************************************************************************* */ export declare const createFileParams: z.ZodObject<{ name: z.ZodString; mimetype: z.ZodString; encoding: z.ZodString; sizeBytes: z.ZodOptional; durationSeconds: z.ZodOptional; buffer: z.ZodOptional>; }, "strip", z.ZodTypeAny, { name: string; mimetype: string; encoding: string; sizeBytes?: number | undefined; durationSeconds?: number | undefined; buffer?: Buffer | undefined; }, { name: string; mimetype: string; encoding: string; sizeBytes?: number | undefined; durationSeconds?: number | undefined; buffer?: Buffer | undefined; }>; export declare const createFileRequest: z.ZodObject<{ params: z.ZodObject<{ name: z.ZodString; mimetype: z.ZodString; encoding: z.ZodString; sizeBytes: z.ZodOptional; durationSeconds: z.ZodOptional; buffer: z.ZodOptional>; }, "strip", z.ZodTypeAny, { name: string; mimetype: string; encoding: string; sizeBytes?: number | undefined; durationSeconds?: number | undefined; buffer?: Buffer | undefined; }, { name: string; mimetype: string; encoding: string; sizeBytes?: number | undefined; durationSeconds?: number | undefined; buffer?: Buffer | undefined; }>; }, "strip", z.ZodTypeAny, { params: { name: string; mimetype: string; encoding: string; sizeBytes?: number | undefined; durationSeconds?: number | undefined; buffer?: Buffer | undefined; }; }, { params: { name: string; mimetype: string; encoding: string; sizeBytes?: number | undefined; durationSeconds?: number | undefined; buffer?: Buffer | undefined; }; }>; export declare const createFileResponse: z.ZodObject<{ status: z.ZodEnum<[string, ...string[]]>; error: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>>; file: z.ZodOptional; durationSeconds: z.ZodOptional; url: z.ZodString; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { url: string; _id: string; name: string; mimetype: string; encoding: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sizeBytes?: number | undefined; durationSeconds?: number | undefined; }, { url: string; _id: string; name: string; mimetype: string; encoding: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sizeBytes?: number | undefined; durationSeconds?: number | undefined; }>>; uploadUrl: z.ZodOptional; }, "strip", z.ZodTypeAny, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; file?: { url: string; _id: string; name: string; mimetype: string; encoding: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sizeBytes?: number | undefined; durationSeconds?: number | undefined; } | undefined; uploadUrl?: string | undefined; }, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; file?: { url: string; _id: string; name: string; mimetype: string; encoding: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sizeBytes?: number | undefined; durationSeconds?: number | undefined; } | undefined; uploadUrl?: string | undefined; }>; export type CreateFileParams = z.infer; export type CreateFileRequest = z.infer; export type CreateFileResponse = z.infer; /** ****************************************************************************** * Create From Url ******************************************************************************* */ export declare const creatFromUrlParams: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; export declare const creatFromUrlRequest: z.ZodObject<{ params: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { params: { url: string; }; }, { params: { url: string; }; }>; export declare const creatFromUrlResponse: z.ZodObject<{ status: z.ZodEnum<[string, ...string[]]>; error: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>>; file: z.ZodOptional; durationSeconds: z.ZodOptional; url: z.ZodString; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { url: string; _id: string; name: string; mimetype: string; encoding: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sizeBytes?: number | undefined; durationSeconds?: number | undefined; }, { url: string; _id: string; name: string; mimetype: string; encoding: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sizeBytes?: number | undefined; durationSeconds?: number | undefined; }>>; }, "strip", z.ZodTypeAny, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; file?: { url: string; _id: string; name: string; mimetype: string; encoding: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sizeBytes?: number | undefined; durationSeconds?: number | undefined; } | undefined; }, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; file?: { url: string; _id: string; name: string; mimetype: string; encoding: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sizeBytes?: number | undefined; durationSeconds?: number | undefined; } | undefined; }>; export type CreateFromUrlParams = z.infer; export type CreateFromUrlRequest = z.infer; export type CreateFromUrlResponse = z.infer; /** ****************************************************************************** * Create File From YouTube ******************************************************************************* */ export declare const createFileFromYouTubeParams: z.ZodObject<{ youtubeUrl: z.ZodString; }, "strip", z.ZodTypeAny, { youtubeUrl: string; }, { youtubeUrl: string; }>; export declare const createFileFromYouTubeRequest: z.ZodObject<{ params: z.ZodObject<{ youtubeUrl: z.ZodString; }, "strip", z.ZodTypeAny, { youtubeUrl: string; }, { youtubeUrl: string; }>; }, "strip", z.ZodTypeAny, { params: { youtubeUrl: string; }; }, { params: { youtubeUrl: string; }; }>; export declare const createFileFromYouTubeResponse: z.ZodObject<{ status: z.ZodEnum<[string, ...string[]]>; error: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>>; file: z.ZodOptional; durationSeconds: z.ZodOptional; url: z.ZodString; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { url: string; _id: string; name: string; mimetype: string; encoding: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sizeBytes?: number | undefined; durationSeconds?: number | undefined; }, { url: string; _id: string; name: string; mimetype: string; encoding: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sizeBytes?: number | undefined; durationSeconds?: number | undefined; }>>; }, "strip", z.ZodTypeAny, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; file?: { url: string; _id: string; name: string; mimetype: string; encoding: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sizeBytes?: number | undefined; durationSeconds?: number | undefined; } | undefined; }, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; file?: { url: string; _id: string; name: string; mimetype: string; encoding: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sizeBytes?: number | undefined; durationSeconds?: number | undefined; } | undefined; }>; export type CreateFileFromYouTubeParams = z.infer; export type CreateFileFromYouTubeRequest = z.infer; export type CreateFileFromYouTubeResponse = z.infer; /** ****************************************************************************** * Get File ******************************************************************************* */ export declare const getFileParams: z.ZodObject<{ fileId: z.ZodString; }, "strip", z.ZodTypeAny, { fileId: string; }, { fileId: string; }>; export declare const getFileRequest: z.ZodObject<{ params: z.ZodObject<{ fileId: z.ZodString; }, "strip", z.ZodTypeAny, { fileId: string; }, { fileId: string; }>; }, "strip", z.ZodTypeAny, { params: { fileId: string; }; }, { params: { fileId: string; }; }>; export declare const getFileByURLParams: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; export declare const getFileByURLRequest: z.ZodObject<{ params: z.ZodObject<{ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; }, "strip", z.ZodTypeAny, { params: { url: string; }; }, { params: { url: string; }; }>; export declare const getFileResponse: z.ZodObject<{ status: z.ZodEnum<[string, ...string[]]>; error: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>>; file: z.ZodNullable; durationSeconds: z.ZodOptional; url: z.ZodString; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { url: string; _id: string; name: string; mimetype: string; encoding: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sizeBytes?: number | undefined; durationSeconds?: number | undefined; }, { url: string; _id: string; name: string; mimetype: string; encoding: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sizeBytes?: number | undefined; durationSeconds?: number | undefined; }>>>; }, "strip", z.ZodTypeAny, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; file?: { url: string; _id: string; name: string; mimetype: string; encoding: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sizeBytes?: number | undefined; durationSeconds?: number | undefined; } | null | undefined; }, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; file?: { url: string; _id: string; name: string; mimetype: string; encoding: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sizeBytes?: number | undefined; durationSeconds?: number | undefined; } | null | undefined; }>; export type GetFileParams = z.infer; export type GetFileRequest = z.infer; export type GetFileByURLParams = z.infer; export type GetFileByURLRequest = z.infer; export type GetFileResponse = z.infer; /** ****************************************************************************** * List Files ******************************************************************************* */ export declare const listFilesParams: z.ZodObject<{ fileIds: z.ZodArray; }, "strip", z.ZodTypeAny, { fileIds: string[]; }, { fileIds: string[]; }>; export declare const listFilesRequest: z.ZodObject<{ params: z.ZodObject<{ fileIds: z.ZodArray; }, "strip", z.ZodTypeAny, { fileIds: string[]; }, { fileIds: string[]; }>; }, "strip", z.ZodTypeAny, { params: { fileIds: string[]; }; }, { params: { fileIds: string[]; }; }>; export declare const listFilesResponse: z.ZodObject<{ status: z.ZodEnum<[string, ...string[]]>; error: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>>; files: z.ZodOptional; durationSeconds: z.ZodOptional; url: z.ZodString; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { url: string; _id: string; name: string; mimetype: string; encoding: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sizeBytes?: number | undefined; durationSeconds?: number | undefined; }, { url: string; _id: string; name: string; mimetype: string; encoding: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sizeBytes?: number | undefined; durationSeconds?: number | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; files?: { url: string; _id: string; name: string; mimetype: string; encoding: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sizeBytes?: number | undefined; durationSeconds?: number | undefined; }[] | undefined; }, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; files?: { url: string; _id: string; name: string; mimetype: string; encoding: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; sizeBytes?: number | undefined; durationSeconds?: number | undefined; }[] | undefined; }>; export type ListFilesParams = z.infer; export type ListFilesRequest = z.infer; export type ListFilesResponse = z.infer;