declare const Grid_base: {
new (): {
[x: string]: any;
darkMode: string;
updated(changed: any): void;
};
[x: string]: any;
readonly properties: {
darkMode: {
type: StringConstructor;
};
};
};
export class Grid extends Grid_base {
static get styles(): import("lit").CSSResult;
static get properties(): {
/** The gap size between items. `1-8` are supported */
gap: {
type: NumberConstructor;
};
/** The maximum responsive cols to show. `1-6` are supported */
maxCols: {
type: NumberConstructor;
};
/** Show the loading state */
loading: {
type: BooleanConstructor;
};
/** When true, autofetch data from the MPC API and apply it. See `autoFetchConfig` for more info. */
autoFetch: {
type: ObjectConstructor;
};
/** Auto fetch data for the grid when required params are supplied
* `{`
* `providerId,`
* `entityType,`
* `marketplaceId,`
* `marketplaceBaseUrl,`
* `apiKey,`
* `apiBaseUrl,`
* `queryParams,`
* `}`
*
* `entityType` options are: `listings`
* `queryParams` accepts any supported `mpc` API param. The value you supply in `queryParams.limit` will be used for pagination, if not supplied the default value is `10`.
*/
autoFetchConfig: {
type: ObjectConstructor;
};
/** A `` config object. See the `Card` component for info on the props supported below.
* `{`
* `target,`
* `}`
*/
mpcCardConfig: {
type: ObjectConstructor;
};
/** Loaded data from auto fetch config. */
_autoFetchData: {
type: ArrayConstructor;
};
_autoFetchPage: {
type: NumberConstructor;
};
};
loading: boolean;
autoFetch: boolean;
autoFetchConfig: {};
mpcCardConfig: {};
maxCols: number;
gap: number;
_autoFetchData: any[];
_autoFetchPage: number;
loadingTemplateMaybe(): import("lit-html").TemplateResult<1> | undefined;
loadingTemplate(): import("lit-html").TemplateResult<1>;
autoFetchContentTemplate(): import("lit-html").TemplateResult<1> | null;
autoFetchPaginationTemplate(): import("lit-html").TemplateResult<1> | null;
_handleAutoFetch(autoFetch: any): void;
_autoFetchResponseMetadata: any;
_handleAutoFetchResponse(data: any, entityType: any): void;
_handleSetPropertiesForListings(data: any): void;
_getGridClassName(): string;
render(): import("lit-html").TemplateResult<1>;
}
export {};