forked from coreyward/gatsby-plugin-sanity-image
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
72 lines (72 loc) · 2.73 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
export const SANITY_REF_PATTERN: RegExp;
export const DEFAULT_IMAGE_CONFIG: any;
export const builder: import("@sanity/image-url/lib/types/builder").ImageUrlBuilder;
export default SanityImage;
export function parseImageRef(id: any): {
assetId: string;
dimensions: {
width: number;
height: number;
};
format: string;
};
export function imageUrl(asset: any, params?: {}): any;
declare function SanityImage({ asset, hotspot, crop, width, height, options, config, __typename, _type, _key, sources, ...props }: {
[x: string]: any;
asset: any;
hotspot: any;
crop: any;
width: any;
height: any;
options?: {};
config?: {};
__typename: any;
_type: any;
_key: any;
sources: any;
}): JSX.Element;
declare namespace SanityImage {
namespace propTypes {
const config: PropTypes.Requireable<object>;
const options: PropTypes.Requireable<PropTypes.InferProps<{
__experimentalAspectRatio: PropTypes.Requireable<boolean>;
}>>;
const hotspot: PropTypes.Requireable<PropTypes.InferProps<{
height: PropTypes.Requireable<number>;
width: PropTypes.Requireable<number>;
x: PropTypes.Requireable<number>;
y: PropTypes.Requireable<number>;
}>>;
const crop: PropTypes.Requireable<PropTypes.InferProps<{
bottom: PropTypes.Requireable<number>;
left: PropTypes.Requireable<number>;
right: PropTypes.Requireable<number>;
top: PropTypes.Requireable<number>;
}>>;
const asset: PropTypes.Validator<PropTypes.InferProps<{
_id: PropTypes.Validator<string>;
metadata: PropTypes.Requireable<PropTypes.InferProps<{
preview: PropTypes.Requireable<string>;
lqip: PropTypes.Requireable<string>;
}>>;
}> | PropTypes.InferProps<{
_ref: PropTypes.Validator<string>;
metadata: PropTypes.Requireable<PropTypes.InferProps<{
preview: PropTypes.Requireable<string>;
lqip: PropTypes.Requireable<string>;
}>>;
}>>;
const width: PropTypes.Requireable<number>;
const height: PropTypes.Requireable<number>;
const htmlWidth: PropTypes.Requireable<number>;
const htmlHeight: PropTypes.Requireable<number>;
const alt: PropTypes.Validator<string>;
const className: PropTypes.Requireable<string>;
const sizes: PropTypes.Requireable<string>;
const __typename: PropTypes.Requireable<any>;
const _type: PropTypes.Requireable<any>;
const _key: PropTypes.Requireable<any>;
const sources: PropTypes.Requireable<any>;
}
}
import PropTypes from "prop-types";