import { ApolloQueryResult } from "@apollo/client/core"; import type { CustomHeaders } from "@vue-storefront/magento-types"; import { CustomQuery, StoreConfigQuery } from "@vue-storefront/magento-types"; import { Context } from "../../types/context"; /** * Fetch store configuration * * @example * Simple usage: * ```ts * import { sdk } from '~/sdk.config.ts'; * * // fetch store configuration * const result = await sdk.magento.storeConfig(); * * // result?.data?.storeConfig contains the store configuration * ``` * * @example * * ```ts * module.exports = { * integrations: { * magento: { * customQueries: { * 'store-config-custom-query': ({ variables, metadata }) => ({ * variables, * query: ` * query storeConfig { * storeConfig { * ${metadata?.fields} * } * } * ` * }), * }, * } * } * }; * ``` * * @example * Using a custom GraphQL query to select only the fields you need * * ```ts * import { sdk } from '~/sdk.config.ts'; * // we want to fetch only logo related data * const customQuery = { * storeConfig: 'store-config-custom-query', * metadata: { * fields: 'logo_alt logo_height logo_width' * } * }; * * const result = await sdk.magento.storeConfig(customQuery); * ``` */ export declare function storeConfig(context: Context, customQuery?: CustomQuery, customHeaders?: CustomHeaders): Promise>; //# sourceMappingURL=index.d.ts.map