import * as T from "../types" export { GetServiceInterface, getServiceInterface } from "./getServiceInterface" export { getServiceInterfaces } from "./getServiceInterfaces" // prettier-ignore export type FlattenIntersection = T extends ArrayLike ? T : T extends object ? {} & {[P in keyof T]: T[P]} : T; export type _ = FlattenIntersection export const isKnownError = (e: unknown): e is T.KnownError => e instanceof Object && ("error" in e || "error-code" in e) declare const affine: unique symbol export type Affine = { [affine]: A } type NeverPossible = { [affine]: string } export type NoAny = NeverPossible extends A ? keyof NeverPossible extends keyof A ? never : A : A