interface GithubGraphQLFormattedError { message: string; locations?: { line: number; column: number; }[]; path?: (string | number)[]; extensions?: { [key: string]: unknown; }; /** * GraphQL spec do not include `type` on error, but * github does. * See: https://spec.graphql.org/draft/#sec-Errors */ type?: string; } declare class PublissueError extends Error { graphQLErrors?: GithubGraphQLFormattedError[] | undefined; name: string; response?: Response; constructor(input: string | Error | Response, graphQLErrors?: GithubGraphQLFormattedError[] | undefined); isHttpError(): this is this & { response: Response; }; isGrapQLError(): this is this & { graphQLErrors: GithubGraphQLFormattedError[]; response: Response; }; isForbidden(): boolean; isNotFound(): boolean; } declare const ensurePublissueError: (error: unknown) => PublissueError; export { type GithubGraphQLFormattedError, PublissueError, ensurePublissueError };