@metamask/snaps-utils
Version:
A collection of utilities for MetaMask Snaps
37 lines • 1.61 kB
text/typescript
/**
* A struct representing a historical price.
*/
export declare const HistoricalPriceStruct: import("@metamask/superstruct").Struct<Record<string, [number, string][]>, null>;
/**
* A struct representing an asset's historical price.
*/
export declare const AssetHistoricalPriceStruct: import("@metamask/superstruct").Struct<{
intervals: Record<string, [number, string][]>;
updateTime: number;
expirationTime?: number | undefined;
} | null, {
intervals: import("@metamask/superstruct").Struct<Record<string, [number, string][]>, null>;
updateTime: import("@metamask/superstruct").Struct<number, null>;
expirationTime: import("@metamask/superstruct").Struct<number | undefined, null>;
}>;
/**
* A struct representing the response of the `onAssetHistoricalPrice` method.
*/
export declare const OnAssetHistoricalPriceResponseStruct: import("@metamask/superstruct").Struct<{
historicalPrice: {
intervals: Record<string, [number, string][]>;
updateTime: number;
expirationTime?: number | undefined;
} | null;
}, {
historicalPrice: import("@metamask/superstruct").Struct<{
intervals: Record<string, [number, string][]>;
updateTime: number;
expirationTime?: number | undefined;
} | null, {
intervals: import("@metamask/superstruct").Struct<Record<string, [number, string][]>, null>;
updateTime: import("@metamask/superstruct").Struct<number, null>;
expirationTime: import("@metamask/superstruct").Struct<number | undefined, null>;
}>;
}>;
//# sourceMappingURL=asset-historical-price.d.mts.map