declare const Card_base: {
new (): {
[x: string]: any;
darkMode: string; /** When present, a button is shown at the buttom of the card */
updated(changed: any): void;
};
[x: string]: any;
readonly properties: {
darkMode: {
type: StringConstructor;
};
};
};
export class Card extends Card_base {
static get styles(): import("lit").CSSResult;
static get properties(): {
/** Title of the card */
title: {
type: StringConstructor;
};
/** Subtitle of the card, shown above the title if present */
subtitle: {
type: StringConstructor;
};
/** Array of image urls, only the first image will be shown */
images: {
type: ArrayConstructor;
};
/** Show the loading state */
loading: {
type: BooleanConstructor;
};
/** When present, clicking the card will route to this string */
href: {
type: StringConstructor;
};
/** Tells the browser where to open the link. Only used when href is set. */
target: {
type: StringConstructor;
};
/** When present, a button is shown at the buttom of the card */
buttonText: {
type: StringConstructor;
};
/** When present, a price is shown. Formatted by numeral.js */
price: {
type: NumberConstructor;
};
/** When present, a currency is shown next to the price */
currency: {
type: StringConstructor;
};
/** The symbol to show before price string. Only used when price is set. */
currencySymbol: {
type: StringConstructor;
};
/** The format string to display the price in, see numeraljs.com for a full list of options */
currencyFormat: {
type: StringConstructor;
};
/** When true, autofetch data from the MPC API and apply it. See `autoFetchConfig` for more info. */
autoFetch: {
type: ObjectConstructor;
};
/** Auto fetch data for the card when required params are supplied
* `{`
* `entityId,`
* `entityType,`
* `marketplaceId,`
* `marketplaceBaseUrl,`
* `apiKey,`
* `apiBaseUrl,`
* `}`
*
* `entityType` options are `listing` */
autoFetchConfig: {
type: ObjectConstructor;
};
/** When supplied, the mpc listing response will be parsed and the appropriate props will be set. This is a shorthand way of manually setting each property when using the mpc api. */
autoListingData: {
type: ObjectConstructor;
};
};
title: string;
subtitle: string;
href: string;
images: any[];
loading: boolean;
buttonText: string;
currency: string;
currencySymbol: string;
currencyFormat: string;
autoFetch: boolean;
autoFetchConfig: {};
_handleAutoFetch(autoFetch: any): void;
_handleAutoFetchResponse(data: any, entityType: any): void;
_handleSetPropertiesForListing(data: any): void;
price: any;
mediaTemplate(): import("lit-html").TemplateResult<1>;
loadingTemplate(): import("lit-html").TemplateResult<1>;
contentTemplate(): import("lit-html").TemplateResult<1>;
render(): import("lit-html").TemplateResult<1>;
}
export {};