import type { Sofa } from './sofa.cjs'; import { Response, type Router } from 'fets'; export type ErrorHandler = (errors: ReadonlyArray) => Response; declare module 'graphql' { interface GraphQLHTTPErrorExtensions { spec?: boolean; status?: number; headers?: Record; } interface GraphQLErrorExtensions { http?: GraphQLHTTPErrorExtensions; } } export declare function createSofaRouter(sofa: Sofa): Router;