import { Logger } from "./logger/Logger.js";
import { Ed25519PublicJwk } from "./modules/kms/jwk/kty/okp/Ed25519PublicJwk.js";
import { PublicJwk } from "./modules/kms/jwk/PublicJwk.js";

//#region src/types.d.ts
interface InitConfig {
  logger?: Logger;
  autoUpdateStorageOnStartup?: boolean;
  /**
   * Allow insecure http urls in places where this is usually required.
   * Unsecure http urls may still be allowed in places where this is not checked (e.g. didcomm)
   *
   * For some flows this config option is set globally, which means that different agent configurations
   * will fight for the configuration. It is meant as a local development option.
   *
   * Use with caution
   *
   * @default false
   */
  allowInsecureHttpUrls?: boolean;
}
type JsonValue = string | number | boolean | null | JsonObject | JsonArray;
type JsonArray = Array<JsonValue>;
interface JsonObject {
  [property: string]: JsonValue;
}
/**
 * Create an exclusive or, setting the other params to 'never' which helps with
 * type narrowing
 *
 * @example
 * ```
 * type Options = XOR<{ name: string }, { dateOfBirth: Date }>
 *
 * type Options =
 *  | { name: string; dateOfBirth?: never }
 *  | { name?: never; dateOfBirth: Date }
 * ```
 */
type XOR<T, U> = (T & { [P in keyof Omit<U, keyof T>]?: never }) | (U & { [P in keyof Omit<T, keyof U>]?: never });
interface ResolvedDidCommService {
  id: string;
  serviceEndpoint: string;
  recipientKeys: PublicJwk<Ed25519PublicJwk>[];
  routingKeys: PublicJwk<Ed25519PublicJwk>[];
}
declare const isJsonObject: (value: unknown) => value is JsonObject;
type SingleOrArray<T> = T | T[];
type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;
type CanBePromise<T> = T | Promise<T>;
type NonEmptyArray<T> = [T, ...T[]];
declare function mapNonEmptyArray<U, M extends (item: U, index: number) => unknown>(array: NonEmptyArray<U>, mapFunction: M): NonEmptyArray<ReturnType<M>>;
declare function isNonEmptyArray<U>(array: U[]): array is NonEmptyArray<U>;
//#endregion
export { CanBePromise, InitConfig, JsonArray, JsonObject, JsonValue, NonEmptyArray, Optional, ResolvedDidCommService, SingleOrArray, XOR, isJsonObject, isNonEmptyArray, mapNonEmptyArray };
//# sourceMappingURL=types.d.ts.map