import type { ContentInput } from './filters.js'; /** Represents the request sent to graph */ type GraphRequest = { /** Query sent to Graph */ query: string; /** Variables sent to Graph */ variables: ContentInput; }; /** Super-class for all errors related to Optimizely Graph */ export declare class OptimizelyGraphError extends Error { constructor(message: string); } /** * Thrown when a content type is referred but can't be found by the SDK. */ export declare class GraphMissingContentTypeError extends OptimizelyGraphError { contentType: string; constructor(contentType: string); } /** Errors related to the response */ export declare class GraphResponseError extends OptimizelyGraphError { request: GraphRequest; constructor(message: string, options: { request: GraphRequest; }); } /** Thrown when the GraphQL server responded with an HTTP error (401, 404...) */ export declare class GraphHttpResponseError extends GraphResponseError { status: number; constructor(message: string, options: { status: number; request: GraphRequest; }); } /** Thrown when the GraphQL server responded with a GraphQL related error (syntax, semantic errors...) */ export declare class GraphContentResponseError extends GraphHttpResponseError { errors: { message: string; }[]; constructor(errors: { message: string; }[], options: { status: number; request: GraphRequest; }); } export {};