import { z, ZodError, RefinementCtx } from 'zod';
import { M as MUDConfigExtender } from '../dynamicResolution-ac143cd8.js';
export { c as DynamicResolution, D as DynamicResolutionType, b as MUDCoreConfig, a as MUDCoreUserConfig, V as ValueWithType, e as extendMUDCoreConfig, i as isDynamicResolution, m as mudCoreConfig, r as resolveTableId, d as resolveWithContext } from '../dynamicResolution-ac143cd8.js';
import * as zod_validation_error from 'zod-validation-error';

/**
 * Capitalized names of objects, like tables and systems
 * @deprecated
 */
declare const zObjectName: z.ZodEffects<z.ZodString, string, string>;
/**
 * Uncapitalized names of values, like keys and columns
 * @deprecated
 */
declare const zValueName: z.ZodEffects<z.ZodString, string, string>;
/** Name that can start with any case
 * @deprecated
 */
declare const zName: z.ZodEffects<z.ZodString, string, string>;
/** A namespace
 * @deprecated
 */
declare const zNamespace: z.ZodEffects<z.ZodString, string, string>;
/** List of unique enum member names and 0 < length < 256
 * @deprecated
 */
declare const zUserEnum: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, string[], string[]>;
/** Ordinary routes
 * @deprecated
 */
declare const zOrdinaryRoute: z.ZodEffects<z.ZodString, string, string>;
/** Routes with exactly 1 non-empty level
 * @deprecated
 */
declare const zSingleLevelRoute: z.ZodEffects<z.ZodString, string, string>;
/** Base routes (can be an empty string)
 * @deprecated
 */
declare const zBaseRoute: z.ZodEffects<z.ZodString, string, string>;
/** A valid Ethereum address
 * @deprecated
 */
declare const zEthereumAddress: z.ZodEffects<z.ZodString, string, string>;

/** @deprecated */
type GlobalWithMUDCoreContext = typeof global & {
    __mudCoreContext: MUDCoreContext;
};
/** @deprecated */
declare class MUDCoreContext {
    /** @deprecated */
    static _global: typeof globalThis;
    /** @deprecated */
    static isCreated(): boolean;
    /** @deprecated */
    static createContext(): MUDCoreContext;
    /** @deprecated */
    static getContext(): MUDCoreContext;
    /** @deprecated */
    readonly configExtenders: MUDConfigExtender[];
}

/** @deprecated */
declare class MUDContextAlreadyCreatedError extends Error {
    name: string;
    message: string;
}
/** @deprecated */
declare class MUDContextNotCreatedError extends Error {
    name: string;
    message: string;
}
/**
 * Wrapper with preset styles, only requires a `prefix`
 * @deprecated
 */
declare function fromZodErrorCustom(error: ZodError, prefix: string): zod_validation_error.ValidationError;
/** @deprecated */
declare class NotInsideProjectError extends Error {
    name: string;
    message: string;
}
/** @deprecated */
declare function UnrecognizedSystemErrorFactory(path: string[], systemName: string): z.ZodError<any>;

/** @deprecated */
declare const STORE_NAME_MAX_LENGTH = 16;
/** @deprecated */
declare const STORE_NAMESPACE_MAX_LENGTH = 14;
/** @deprecated */
declare function validateName(name: string, ctx: RefinementCtx): void;
/** @deprecated */
declare function validateCapitalizedName(name: string, ctx: RefinementCtx): void;
/** @deprecated */
declare function validateUncapitalizedName(name: string, ctx: RefinementCtx): void;
/**
 * validates only the enum array, not the names of enum members
 * @deprecated
 */
declare function validateEnum(members: string[], ctx: RefinementCtx): void;
/** @deprecated */
declare const validateRoute: (route: string, ctx: RefinementCtx) => void;
/** @deprecated */
declare const validateBaseRoute: (route: string, ctx: RefinementCtx) => void;
/** @deprecated */
declare const validateSingleLevelRoute: (route: string, ctx: RefinementCtx) => void;
/** @deprecated */
declare function validateEthereumAddress(address: string, ctx: RefinementCtx): void;
/** @deprecated */
declare function getDuplicates<T>(array: T[]): T[];
/** @deprecated */
declare function validateNamespace(name: string, ctx: RefinementCtx): void;
/**
 * Returns null if the type does not look like a static array, otherwise element and length data
 * @deprecated
 */
declare function parseStaticArray(abiType: string): {
    elementType: string;
    staticLength: number;
} | null;

export { GlobalWithMUDCoreContext, MUDConfigExtender, MUDContextAlreadyCreatedError, MUDContextNotCreatedError, MUDCoreContext, NotInsideProjectError, STORE_NAMESPACE_MAX_LENGTH, STORE_NAME_MAX_LENGTH, UnrecognizedSystemErrorFactory, fromZodErrorCustom, getDuplicates, parseStaticArray, validateBaseRoute, validateCapitalizedName, validateEnum, validateEthereumAddress, validateName, validateNamespace, validateRoute, validateSingleLevelRoute, validateUncapitalizedName, zBaseRoute, zEthereumAddress, zName, zNamespace, zObjectName, zOrdinaryRoute, zSingleLevelRoute, zUserEnum, zValueName };
