export declare type promised = (...args: any[]) => Promise; export declare const functionFactory: (id: string, func: T) => T;