1 | import { ImageAsset as ImageAssetDefinition, ImageAssetOptions } from '.';
|
2 | import { Observable } from '../data/observable';
|
3 | export declare class ImageAssetBase extends Observable implements ImageAssetDefinition {
|
4 | private _options;
|
5 | private _nativeImage;
|
6 | ios: PHAsset;
|
7 | android: string;
|
8 | constructor();
|
9 | get options(): ImageAssetOptions;
|
10 | set options(value: ImageAssetOptions);
|
11 | get nativeImage(): any;
|
12 | set nativeImage(value: any);
|
13 | getImageAsync(callback: (image: any, error: Error) => void): void;
|
14 | }
|
15 | export declare function getAspectSafeDimensions(sourceWidth: any, sourceHeight: any, reqWidth: any, reqHeight: any): {
|
16 | width: number;
|
17 | height: number;
|
18 | };
|
19 | export declare function getRequestedImageSize(src: {
|
20 | width: number;
|
21 | height: number;
|
22 | }, options: ImageAssetOptions): {
|
23 | width: number;
|
24 | height: number;
|
25 | };
|