import * as gracely from "gracely"; import * as authly from "authly"; import "isomorphic-fetch"; import { Storage } from "./Storage"; export declare class Connection { onError?: (error: gracely.Error, request: RequestInit) => Promise; onUnauthorized?: (connection: Connection) => Promise; readonly continuation: Record; private constructor(); private fetch; get(path: string, header?: HeadersInit & { accept?: string | undefined; }, continuationName?: string, continuation?: boolean): Promise; post(path: string, request: any, header?: HeadersInit & { accept?: string | undefined; }): Promise; put(path: string, request: any, header?: HeadersInit & { accept?: string | undefined; }): Promise; patch(path: string, request: any, header?: HeadersInit & { accept?: string | undefined; }): Promise; delete(path: string, header?: HeadersInit & { accept?: string | undefined; }): Promise; private static storageValue; static get storage(): Storage | undefined; static get app(): string | undefined; private static urlValue; static get url(): string | undefined; static set url(value: string | undefined); private static keyValue; static get key(): string | undefined; static set key(value: string | undefined); static readonly keyChanged: ((key: authly.Token | undefined) => void)[]; private handleNoContentResponses; static open(url: string, key: string): Connection; static open(url?: string, key?: string): Connection | undefined; }