interface Spyimport { type Spy } from "https://dotland.deno.dev/std@0.181.0/testing/mock.ts"; A function or instance method wrapper that records all calls made to it. Type ParametersoptionalSelf = anyoptionalArgs extends unknown[] = any[]optionalReturn = anyCall Signatures(this: Self, ...args: Args): ReturnPropertiesoriginal: (this: Self, ...args: Args) => ReturnThe function that is being spied on. calls: SpyCall<Self, Args, Return>[]Information about calls made to the function or instance method. restored: booleanWhether or not the original instance method has been restored. Methodsrestore(): voidIf spying on an instance method, this restores the original instance method.