export declare function patch(source: { [key: string]: any; }, name: string, replacement: (...args: unknown[]) => unknown): () => void;