import { EventEmitter, OnInit } from '@angular/core'; import { MJFileEntity } from '@memberjunction/core-entities'; import { BaseAngularComponent } from '@memberjunction/ng-base-types'; import { z } from 'zod'; import * as i0 from "@angular/core"; /** * Minimal file info interface replacing Kendo's FileInfo. */ export interface FileSelectInfo { name: string; size: number; rawFile: File; } export type FileUploadEvent = { success: true; file: MJFileEntity; } | { success: false; file: FileSelectInfo; }; declare const FileUploadMutationSchema: z.ZodObject<{ CreateFile: z.ZodObject<{ NameExists: z.ZodBoolean; UploadUrl: z.ZodString; File: z.ZodObject; CategoryID: z.ZodNullable; ProviderID: z.ZodString; ContentType: z.ZodNullable; ProviderKey: z.ZodNullable; Status: z.ZodString; __mj_CreatedAt: z.ZodDate; __mj_UpdatedAt: z.ZodDate; Category: z.ZodNullable; Provider: z.ZodString; }, "__mj_CreatedAt" | "__mj_UpdatedAt">, "passthrough", z.ZodTypeAny, z.objectOutputType; CategoryID: z.ZodNullable; ProviderID: z.ZodString; ContentType: z.ZodNullable; ProviderKey: z.ZodNullable; Status: z.ZodString; __mj_CreatedAt: z.ZodDate; __mj_UpdatedAt: z.ZodDate; Category: z.ZodNullable; Provider: z.ZodString; }, "__mj_CreatedAt" | "__mj_UpdatedAt">, z.ZodTypeAny, "passthrough">, z.objectInputType; CategoryID: z.ZodNullable; ProviderID: z.ZodString; ContentType: z.ZodNullable; ProviderKey: z.ZodNullable; Status: z.ZodString; __mj_CreatedAt: z.ZodDate; __mj_UpdatedAt: z.ZodDate; Category: z.ZodNullable; Provider: z.ZodString; }, "__mj_CreatedAt" | "__mj_UpdatedAt">, z.ZodTypeAny, "passthrough">>; }, "strip", z.ZodTypeAny, { NameExists: boolean; UploadUrl: string; File: { ID: string; Name: string; Description: string | null; CategoryID: string | null; ProviderID: string; ContentType: string | null; ProviderKey: string | null; Status: string; Category: string | null; Provider: string; } & { [k: string]: unknown; }; }, { NameExists: boolean; UploadUrl: string; File: { ID: string; Name: string; Description: string | null; CategoryID: string | null; ProviderID: string; ContentType: string | null; ProviderKey: string | null; Status: string; Category: string | null; Provider: string; } & { [k: string]: unknown; }; }>; }, "strip", z.ZodTypeAny, { CreateFile: { NameExists: boolean; UploadUrl: string; File: { ID: string; Name: string; Description: string | null; CategoryID: string | null; ProviderID: string; ContentType: string | null; ProviderKey: string | null; Status: string; Category: string | null; Provider: string; } & { [k: string]: unknown; }; }; }, { CreateFile: { NameExists: boolean; UploadUrl: string; File: { ID: string; Name: string; Description: string | null; CategoryID: string | null; ProviderID: string; ContentType: string | null; ProviderKey: string | null; Status: string; Category: string | null; Provider: string; } & { [k: string]: unknown; }; }; }>; type ApiFile = z.infer['CreateFile']['File']; type UploadTuple = [FileSelectInfo, ApiFile, string]; export declare class FileUploadComponent extends BaseAngularComponent implements OnInit { ConfirmQueue: Array; UploadQueue: Array; private defaultProviderID; private get md(); get IsUploading(): boolean; constructor(); disabled: boolean; CategoryID: string | undefined; uploadStarted: EventEmitter; fileUpload: EventEmitter; ngOnInit(): void; Refresh(): Promise; Confirm(): void; CancelConfirm(): Promise; /** * Handles the native file input change event. */ OnFileSelected(event: Event): void; private _processUploadQueue; private _uploadFile; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } export {}; //# sourceMappingURL=file-upload.d.ts.map