import type { ServerResponse } from 'http' import type { OperationContext, OperationOptions, } from '@commerce/api/operations' import { Provider, CommercetoolsConfig } from '@framework/api' export default function loginOperation({ commerce, }: OperationContext) { async function login(opts: { variables: T['variables'] config?: Partial res: ServerResponse }): Promise async function login( opts: { variables: T['variables'] config?: Partial res: ServerResponse } & OperationOptions ): Promise async function login({ query = '', variables, res: response, config: cfg, }: { query?: string variables: T['variables'] res: ServerResponse config?: Partial }): Promise { const config = commerce.getConfig(cfg) return { result: '', } } return login }