export type ErrorKind = "client" | "server" | "app"; export type ErrorCode = "unsupported-file-type" | "heic-not-supported" | "invalid-token" | "empty-api-path" | "unknown"; export type BasicError = { kind: ErrorKind; inner: T; code?: ErrorCode; }; export declare const basicErrorFromResponse: (error: Response) => BasicError; export declare const invalidTokenError: BasicError; export declare const emptyApiPathError: BasicError;