/** * The type of a file resource. */ export declare const enum FileType { Raw = "raw", Image = "image", Font = "font", Remote = "remote" } /** * File data. */ export interface FileData { src: string; type: FileType; } declare const File_base: new (overrides?: Partial | undefined) => import("@diez/engine").Prefab & FileData; /** * Provides a container for referencing local assets, which can be bridged by compilers to embed images, SVGs, * and more. This component is used internally by [[Image]] and [[Font]]. * * The compiler may enforce certain restrictions on the `type` of a `File` instance. * * Usage: `file = new File({src: 'assets/images/file.jpg', type: FileType.Image});`. * * @noinheritdoc */ export declare class File extends File_base { defaults: { src: string; type: FileType; }; protected sanitize(data: FileData): { src: string; type: FileType; }; toPresentableValue(): string; } export {}; //# sourceMappingURL=file.d.ts.map