import { JsonName } from './name.js'; import { type Namefully } from './namefully.js'; /** Serialized representation of a Namefully instance. */ export interface SerializedName { /** The name data (with its hierarchy intact). */ names: JsonName; /** The configuration data. */ config: { name: string; orderedBy: string; separator: string; title: string; ending: boolean; bypass: boolean; surname: string; mono: boolean | string; }; } /** * Deserializes a JSON object into a Namefully instance. * * This is the inverse operation of `serialize()`, reconstructing a Namefully * instance from a previously serialized JSON object, preserving the name hierarchy. * * @param {SerializedName | string} data the serialized Namefully data (from `serialize()` * or compatible format). * @returns a new Namefully instance. * * @throws {NameError} if the data cannot be parsed or is invalid. */ export declare function deserialize(data: SerializedName | string): Namefully;