/***
 * This takes the request, decodes the request body and extracts each line in the format of the git-upload-pack protocol (https://git-scm.com/docs/gitprotocol-v2)
 * and allows us to rewrite the request to add filters like blob:none or request only specific oids (overrideWants) or block list specific oids (overrideHaves)
 */
export declare function optimizeReq(gitConfig: {
    noBlobs?: boolean | undefined;
    addRefs?: string[] | undefined;
    overrideHaves?: string[] | undefined;
    overrideWants?: string[] | undefined;
} | undefined, { method, url, body, }: {
    method: string;
    url: string;
    body?: any;
}): Promise<{
    url: string;
    body: string;
    method: string;
    headers: {
        accept: string;
        "content-type": string;
        "git-protocol": string;
    };
} | {
    body: string;
    url?: undefined;
    method?: undefined;
    headers?: undefined;
} | undefined>;
export declare function optimizeRes({ origUrl, resBody, statusCode, resHeaders, }: {
    origUrl: string;
    usedUrl: string;
    resBody: Uint8Array;
    statusCode: number;
    resHeaders: Record<string, string>;
}): Promise<{
    resHeaders: Record<string, string>;
    resBody: Uint8Array[];
} | undefined>;
//# sourceMappingURL=optimizeReq.d.ts.map