/** * @description ku4-preview */ export declare class Ku4Preview { private input; constructor(); /** * Preview for input having id of value */ readonly for: string; /** * The default image src */ readonly src: string; /** * An alternate fallback src for when src does not load. * Useful when this component is used e.g. as a profile image */ readonly altSrc: string; /** * EXIF orientation. This will override * any set capture value. (optional) */ readonly orientation: 1 | 6 | 8; /** * Maximum display x resolution (optional). * This will have no effect on the uploaded file * only on preview display. It can be very useful * to set maximum display resolutions to * significantly increase load times for large files. */ readonly resolutionX: number; /** * Maximum display y resolution (optional). * This will have no effect on the uploaded file * only on preview display. It can be very useful * to set maximum display resolutions to * significantly increase load times for large files. */ readonly resolutionY: number; /** * Force a 'portrait' or 'landscape' capture * orientation. This is unlikely necessary, but * useful for those who want to implement specific * custom capture orientation logic. (optional) */ readonly capture: 'portrait' | 'landscape'; /** * Indicates load status of target asset (readonly) */ status: 'loading' | 'loaded' | 'error'; /** * Alt text */ readonly alt: string; currentSrc: string; orientationHandler(): void; /** * Read data out of this preview */ read(): Promise; private handleChange; private orient; componentWillLoad(): void; disconnectedCallback(): void; render(): any; }