export type CallbackFn = (result: T) => void; export interface WithCallback { callback?: CallbackFn; } /** * Most SDK entry points take a single options object ({callback, ...}), but getAllCategories / * getAllPopularProducts historically took a positional callback. Integrators reasonably guess the * object form and get "e is not a function". This accepts either shape: * fn(cb) -> {callback: cb, options: {}} * fn({callback: cb, ...rest}) -> {callback: cb, options: {callback, ...rest}} */ export declare const normalizeCallbackArg: >(arg?: CallbackFn | O) => { callback?: CallbackFn; options: Partial; };