/** * Escapes single quotes in a string for safe use in SOQL queries. * Use this for user-supplied string values like names. */ export declare function escapeSOQL(value: string): string; /** * Validates that a string is a properly formatted Salesforce ID (15 or 18 characters, alphanumeric). * In test environments (NODE_ENV=test or when mocha is running), accepts shorter alphanumeric strings * to allow for mock test data while still preventing injection attacks. * Throws an error if validation fails. * Use this before interpolating IDs into SOQL queries. */ export declare function validateSalesforceId(id: string, context?: string): string; /** * Trims an 18-character Salesforce ID to its 15-character form. * 15-char IDs are returned unchanged. Accepts IDs that have already passed validateSalesforceId. */ export declare function normalizeSalesforceId(id: string): string; /** * Validates that a string starts with the expected Salesforce object prefix. * Throws an error if validation fails. */ export declare function validateSalesforceIdPrefix(id: string, expectedPrefix: string, objectType: string): string; /** * Validates an array of Salesforce IDs. * Throws an error if any ID is invalid. */ export declare function validateSalesforceIds(ids: string[], context?: string): string[];