import { FetchResult } from "@apollo/client/core"; import type { CustomHeaders } from "@vue-storefront/magento-types"; import { ChangeCustomerPasswordMutation, CustomQuery } from "@vue-storefront/magento-types"; import { Context } from "../../types/context"; /** * Change customer password. * * @example * Simple usage, change customer password: * ```ts * import { sdk } from '~/sdk.config.ts'; * * const result = await sdk.magento.changeCustomerPassword({ * currentPassword: 'currentPassword', * newPassword: 'newPassword' * }); * ``` * * @example * Creating a custom GraphQL query for changeCustomerPassword: * * ```ts * module.exports = { * integrations: { * magento: { * customQueries: { * 'change-customer-password-custom-query': ({ variables, metadata }) => ({ * variables, * query: ` * mutation changeCustomerPassword($currentPassword: String!, $newPassword: String!) { * changeCustomerPassword( * currentPassword: $currentPassword * newPassword: $newPassword * ) { * ${metadata.fields} * } * } * ` * }), * }, * } * } * }; * ``` * * @example * Using a custom GraphQL query to narrow down the response data: * * ```ts * import { sdk } from '~/sdk.config.ts'; * // reduce the amount of fields returned by the query, when compared to the default query * const customQuery = { * changeCustomerPassword: 'change-customer-password-custom-query', * metadata: { * fields: 'email' * } * }; * * const result = await sdk.magento.changeCustomerPassword({ * currentPassword: 'currentPassword', * newPassword: 'newPassword' * }, customQuery); * ``` */ export declare function changeCustomerPassword(context: Context, params: { currentPassword: string; newPassword: string; }, customQuery?: CustomQuery, customHeaders?: CustomHeaders): Promise>; //# sourceMappingURL=index.d.ts.map