import { PipeTransform } from '@nestjs/common'; /** * Custom pipe that validates whether a given string is a valid customer ID. * * A valid customer ID: * - Must be a string. * - Must have exactly 10 digits. * - Must start with "000" (e.g., "0001234567"). * * ### Example: * ```ts * * @Post('/:customerId') * isCustomerIdPipe( * @Param('customerId', new ValidateCustomerIdPipe()) customerId: string, *) { * return `Is valid: ${customerId}`; *} * ``` * * @param value the ID string. * @returns An error if the ID does not match with the expected pattern. */ export declare class ValidateCustomerIdPipe implements PipeTransform { transform(value: string): string; } //# sourceMappingURL=validate-customer-id.pipe.d.ts.map