import { CourierClientOptions } from '../client/courier-client'; export declare class CourierRequestError extends Error { code: number; type?: string | undefined; constructor(code: number, message: string, type?: string | undefined); } export declare function http(props: { url: string; clientKey?: string; options: CourierClientOptions; method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH'; headers?: Record; body?: any; validCodes?: number[]; }): Promise; export declare function graphql(props: { url: string; options: CourierClientOptions; headers: Record; query: string; variables?: Record; }): Promise;