import type { Component, Content } from "../core/types.js"; /** * Allocate an ID that is unique in the current thread. * * @returns The unique id in the form `rvx_123`. */ export declare function uniqueId(): string; /** * A component that provides a unique id in the form `rvx_123` to its children. * * See {@link UseUniqueId ``} when using JSX. * * @example * ```tsx * import { useUniqueId, e } from "rvx"; * * useUniqueId(id => [ * e("label").set("for", id).append("Text"), * e("input").set("type", "text").set("id", id), * ]) * ``` */ export declare function useUniqueId(component: Component): T; /** * Get a {@link uniqueId unique id} for the specified object. * * @param target The target object. * @returns The id. This is always the same id for the same object. */ export declare function uniqueIdFor(target: object): string; //# sourceMappingURL=unique-id.d.ts.map