import type { Target } from '@traversable/registry'; import { Type } from './functor.js'; export type Tagged = { shape: Record; tag: string | number | bigint | boolean | null | undefined; }; export type Discriminated = [ discriminant: string | number, tagged: Tagged[] ]; export type PathSpec = { path: (string | number)[]; ident: string; }; export declare const Invariant: { IllegalState(functionName: string, expected: string, got: unknown): never; }; export declare const defaultPrevSpec: { ident: string; path: string[]; }; export declare const defaultNextSpec: { ident: string; path: string[]; }; export declare function isSpecialCase(x: unknown): x is Type.Literal; export declare function isNumeric(x: unknown): x is Type.Integer | Type.Number; export declare function isScalar(x: unknown): x is Type.Boolean | Type.String; export declare function isTypelevelNullary(x: unknown): x is Type.Never | Type.Unknown; export type Primitive = Target; export type DeepClonePrimitive = Target; export declare function isPrimitive(x: unknown): x is Type.Boolean | Type.Integer | Type.Number | Type.String | Type.Literal; export declare function deepCloneIsPrimitive(x: unknown): x is Type.Null | Type.Boolean | Type.Integer | Type.Number | Type.String | Type.Literal; export declare function schemaOrdering([x]: readonly [unknown, number], [y]: readonly [unknown, number]): 0 | 1 | -1; export declare function deepCloneSchemaOrdering(x: T, y: T): 0 | 1 | -1; export declare function deepCloneInlinePrimitiveCheck(x: DeepClonePrimitive, LEFT_SPEC: PathSpec, RIGHT_SPEC?: PathSpec, useGlobalThis?: boolean): string; export declare function inlinePrimitiveCheck(x: Primitive, LEFT_SPEC: PathSpec, RIGHT_SPEC?: PathSpec, useGlobalThis?: boolean): string; export declare function areAllObjects(xs: readonly unknown[]): xs is readonly Type.Object[]; export declare function getTags(xs: readonly unknown[]): Discriminated | null; export declare function flattenUnion(options: readonly unknown[], out?: unknown[]): unknown[]; //# sourceMappingURL=utils.d.ts.map