import type { ConditionalExcept, HasRequiredKeys, Simplify } from '@skyleague/axioms/types'; import type { Got } from 'got'; import type { KyInstance } from 'ky'; import type { Interceptor, Scope } from 'nock'; export type NockArgs = Simplify>; export type NockFn = HasRequiredKeys extends true ? (args?: Args) => Interceptor : (args?: Args) => Interceptor; export type RestClient = { client: Got | KyInstance; }; export type NockClient = { [Key in keyof T]: T[Key] extends (args: infer Args) => Promise ? NockFn> : never; } & { [Symbol.dispose]: () => void; nock: Scope; }; export declare function $nockClient(client: T): NockClient;