type ExtractArgs = T[keyof T] extends (...args: infer A) => any ? A : any[]; type EventState> = T & { (key?: keyof T, fun?: T[keyof T]): EventState; (target?: Partial): EventState; }; interface GeolocationState { snapshot: [GeolocationState]; geolocation: any; id: number; callback(): void; change(): void; mount(): void; clean(): void; } type GeolocationArg = Partial | GeolocationState['change']; declare const geolocationEvent: () => EventState; export { type GeolocationArg, type GeolocationState, geolocationEvent };