/**
 * Posthog-specific error types.
 *
 * Re-exports common HTTP errors from sdk-core and adds Posthog-specific
 * error matching and API error types.
 */
export { BadGateway, BadRequest, Conflict, ConfigError, Forbidden, GatewayTimeout, InternalServerError, Locked, NotFound, ServiceUnavailable, TooManyRequests, Unauthorized, UnprocessableEntity, HTTP_STATUS_MAP, DEFAULT_ERRORS, API_ERRORS, } from "@distilled.cloud/core/errors";
import * as Schema from "effect/Schema";
import * as Category from "@distilled.cloud/core/category";
// Unknown Posthog error - returned when an error code is not recognized
export class UnknownPosthogError extends Schema.TaggedErrorClass()("UnknownPosthogError", {
    code: Schema.optional(Schema.String),
    message: Schema.optional(Schema.String),
    body: Schema.Unknown,
}).pipe(Category.withServerError) {
}
// Schema parse error wrapper
export class PosthogParseError extends Schema.TaggedErrorClass()("PosthogParseError", {
    body: Schema.Unknown,
    cause: Schema.Unknown,
}).pipe(Category.withParseError) {
}
//# sourceMappingURL=errors.js.map