export declare enum Type { OBJECT = "object", VARIABLE = "variable" } type VariableResult = { type: Type.VARIABLE; result: string; }; type ObjectResult = { type: Type.OBJECT; result: Result[]; }; export type Result = VariableResult | ObjectResult; declare const factory: () => { extract: (fn: T) => Result[]; }; export default factory;