import type { RequestInit } from 'node-fetch';
declare type PublicAPI<O, R> = (options: O, init?: RequestInit) => Promise<R>;
declare type SimplePublicAPI<O, R> = (options?: O, init?: RequestInit) => Promise<R>;
declare type Response<Data> = {
    success: true;
    data: Data;
} | {
    success: false;
    data: {
        code: number;
    };
};
declare type Reviver = Parameters<typeof JSON.parse>[1];
export type { PublicAPI, SimplePublicAPI, Response, Reviver };
//# sourceMappingURL=fetch.d.ts.map