import { ApexServices } from '@salesforce/apex'; /** * An Apex method. May be invoked imperatively or used with @wire. */ export type ApexMethod = () => Promise; /** * Module resolver for @salesforce/apex/* that provides access to force.com Apex. * * The supported module identifiers are dependent on org metadata: * 1. Service capabilities, like refresh: @salesforce/apex * 2. Wire adapter and imperative function of an Apex method in namespace: @salesforce/apex/[namespace].[ClassName].[methodName] * 3. Wire adapter and imperative function of an Apex method in default ('c') namespace: @salesforce/apex/[ClassName].[methodName] * * @param resource The module identifier. Eg "@salesforce/apex/ClassName.methodName". * @param resource The resource name; that is, the value after "@salesforce/apex/". * @returns The value of the requested resource. */ export default function apexResolver(resource: string): ApexServices | ApexMethod | undefined;