declare type Endpoint = (...args: any) => Promise; export declare function wrapAuthHandler>(endpoints: T): {}; export {};