export type HandleFunction = (...args: Array) => any; type HandleOpts = { fn?: HandleFunction; childId?: number | null | undefined; id?: number; }; export default class Handle { id: number; childId: number | null | undefined; fn: HandleFunction | null | undefined; constructor(opts: HandleOpts); dispose(): void; serialize(): { childId: number | null | undefined; id: number; }; static deserialize(opts: HandleOpts): Handle; } export {};