import * as z from "zod";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
/**
 * Response headers
 */
export type Headers = {};
/**
 * Raw error response from the provider
 */
export type Raw = {};
export type ProviderError = {
    /**
     * Response headers
     */
    headers?: Headers | null | undefined;
    /**
     * Raw error response from the provider
     */
    raw?: Raw | null | undefined;
    /**
     * HTTP status code of the provider error
     */
    status?: number | null | undefined;
    /**
     * URL that caused the error
     */
    url?: string | null | undefined;
};
/** @internal */
export declare const Headers$inboundSchema: z.ZodType<Headers, z.ZodTypeDef, unknown>;
/** @internal */
export type Headers$Outbound = {};
/** @internal */
export declare const Headers$outboundSchema: z.ZodType<Headers$Outbound, z.ZodTypeDef, Headers>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace Headers$ {
    /** @deprecated use `Headers$inboundSchema` instead. */
    const inboundSchema: z.ZodType<Headers, z.ZodTypeDef, unknown>;
    /** @deprecated use `Headers$outboundSchema` instead. */
    const outboundSchema: z.ZodType<Headers$Outbound, z.ZodTypeDef, Headers>;
    /** @deprecated use `Headers$Outbound` instead. */
    type Outbound = Headers$Outbound;
}
export declare function headersToJSON(headers: Headers): string;
export declare function headersFromJSON(jsonString: string): SafeParseResult<Headers, SDKValidationError>;
/** @internal */
export declare const Raw$inboundSchema: z.ZodType<Raw, z.ZodTypeDef, unknown>;
/** @internal */
export type Raw$Outbound = {};
/** @internal */
export declare const Raw$outboundSchema: z.ZodType<Raw$Outbound, z.ZodTypeDef, Raw>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace Raw$ {
    /** @deprecated use `Raw$inboundSchema` instead. */
    const inboundSchema: z.ZodType<Raw, z.ZodTypeDef, unknown>;
    /** @deprecated use `Raw$outboundSchema` instead. */
    const outboundSchema: z.ZodType<Raw$Outbound, z.ZodTypeDef, Raw>;
    /** @deprecated use `Raw$Outbound` instead. */
    type Outbound = Raw$Outbound;
}
export declare function rawToJSON(raw: Raw): string;
export declare function rawFromJSON(jsonString: string): SafeParseResult<Raw, SDKValidationError>;
/** @internal */
export declare const ProviderError$inboundSchema: z.ZodType<ProviderError, z.ZodTypeDef, unknown>;
/** @internal */
export type ProviderError$Outbound = {
    headers?: Headers$Outbound | null | undefined;
    raw?: Raw$Outbound | null | undefined;
    status?: number | null | undefined;
    url?: string | null | undefined;
};
/** @internal */
export declare const ProviderError$outboundSchema: z.ZodType<ProviderError$Outbound, z.ZodTypeDef, ProviderError>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace ProviderError$ {
    /** @deprecated use `ProviderError$inboundSchema` instead. */
    const inboundSchema: z.ZodType<ProviderError, z.ZodTypeDef, unknown>;
    /** @deprecated use `ProviderError$outboundSchema` instead. */
    const outboundSchema: z.ZodType<ProviderError$Outbound, z.ZodTypeDef, ProviderError>;
    /** @deprecated use `ProviderError$Outbound` instead. */
    type Outbound = ProviderError$Outbound;
}
export declare function providerErrorToJSON(providerError: ProviderError): string;
export declare function providerErrorFromJSON(jsonString: string): SafeParseResult<ProviderError, SDKValidationError>;
//# sourceMappingURL=providererror.d.ts.map