import type { ProbeConfig } from "../types";

declare const validatedConfigBrand: unique symbol;

export type JsonValue = boolean | JsonValue[] | null | number | string | { [key: string]: JsonValue };

export type RawProbeConfig = ProbeConfig;

export type ValidatedProbeConfig = RawProbeConfig & { readonly [validatedConfigBrand]: true };

export function asValidatedConfig(config: RawProbeConfig): ValidatedProbeConfig {
  return config as ValidatedProbeConfig;
}
