@visa/nova-angular
Version:
Visa Product Design System Nova Angular library
46 lines (45 loc) • 1.72 kB
TypeScript
/**
* Copyright (c) 2025 Visa, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
**/
import * as i0 from "@angular/core";
/**
* This unique ID generator service is primarily used internally by the library but can be leveraged directly for custom implementations.
*/
export declare class UUIDService {
/**
* Object to store generated IDs.
*/
private UUIDs;
/** @ignore */
private _getRandomId;
/**
* The getUUID method generates a random ID. <br>
* Works in tandem with <code>checkUUID</code> until a unique ID is generated.
* @param name Optional string to start the ID.
* @returns string
*/
getUUID(prefix?: string): string;
/**
* The checkUUID method verifies that the ID has not already been generated by the getUUID method. <br>
* Works in tandem with <code>getUUID</code> until a unique ID is generated.
* @param uuid ID to check.
* @param name Optional string to start the ID.
* @returns uuid
*/
checkUUID(uuid: string, prefix?: string): string;
static ɵfac: i0.ɵɵFactoryDeclaration<UUIDService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<UUIDService>;
}