/**
 * Salesforce Bubble Utility Functions
 *
 * Helper functions for Salesforce API interactions and data formatting.
 */
/**
 * Validate Salesforce ID format (15 or 18 character)
 * @param id Salesforce record ID
 * @returns Whether the ID is valid
 */
export declare function isValidSalesforceId(id: string): boolean;
/**
 * Convert 15-character Salesforce ID to 18-character ID
 * @param id15 15-character Salesforce ID
 * @returns 18-character Salesforce ID
 */
export declare function to18CharId(id15: string): string;
/**
 * Format Salesforce date to ISO string
 * @param sfDate Salesforce date string (YYYY-MM-DD or ISO format)
 * @returns ISO date string
 */
export declare function formatSalesforceDate(sfDate: string): string;
/**
 * Convert JavaScript Date to Salesforce date format
 * @param date JavaScript Date object
 * @returns Salesforce date string (YYYY-MM-DD)
 */
export declare function toSalesforceDate(date: Date): string;
/**
 * Escape SOQL special characters in a string
 * @param value String to escape
 * @returns Escaped string safe for SOQL
 */
export declare function escapeSoql(value: string): string;
/**
 * Build a SOQL query string
 * @param sobjectType sObject API name
 * @param fields Array of field names to select
 * @param options Query options (where, orderBy, limit)
 * @returns SOQL query string
 */
export declare function buildSoqlQuery(sobjectType: string, fields: string[], options?: {
    where?: string;
    orderBy?: string;
    limit?: number;
}): string;
/**
 * Enhance Salesforce API error messages with helpful hints
 * @param error Original error message or object
 * @param statusCode HTTP status code
 * @returns Enhanced error message
 */
export declare function enhanceSalesforceErrorMessage(error: string | SalesforceErrorResponse[], statusCode?: number): string;
/**
 * Salesforce error response object
 */
export interface SalesforceErrorResponse {
    message: string;
    errorCode?: string;
    fields?: string[];
}
/**
 * Parse Salesforce API error response
 * @param responseBody Response body from Salesforce API
 * @returns Array of error objects or string error
 */
export declare function parseSalesforceError(responseBody: unknown): SalesforceErrorResponse[] | string;
/**
 * Get the instance URL from OAuth token response metadata
 * @param instanceUrl Instance URL from OAuth response
 * @returns Cleaned instance URL (without trailing slash)
 */
export declare function cleanInstanceUrl(instanceUrl: string): string;
/**
 * Get Salesforce API version
 * @returns Current API version string
 */
export declare function getSalesforceApiVersion(): string;
/**
 * Build Salesforce REST API URL
 * @param instanceUrl Salesforce instance URL
 * @param endpoint API endpoint path
 * @returns Full API URL
 */
export declare function buildApiUrl(instanceUrl: string, endpoint: string): string;
//# sourceMappingURL=salesforce.utils.d.ts.map