/**
 * Converts an 18 character Salesforce ID to 15 characters.
 *
 * @param id The id to convert.
 */
export declare function trimTo15(id: string): string;
export declare function trimTo15(id?: undefined): undefined;
export declare function trimTo15(id: string | undefined): string | undefined;
/**
 * Tests whether an API version matches the format `i.0`.
 *
 * @param value The API version as a string.
 */
export declare const validateApiVersion: (value: string) => boolean;
/**
 * Tests whether an email matches the format `me@my.org`
 *
 * @param value The email as a string.
 */
export declare const validateEmail: (value: string) => boolean;
/**
 * Tests whether a Salesforce ID is in the correct format, a 15- or 18-character length string with only letters and numbers
 *
 * @param value The ID as a string.
 */
export declare const validateSalesforceId: (value: string) => boolean;
/**
 * Tests whether a path is in the correct format; the value doesn't include the characters "[", "]", "?", "<", ">", "?", "|"
 *
 * @param value The path as a string.
 */
export declare const validatePathDoesNotContainInvalidChars: (value: string) => boolean;
export declare const accessTokenRegex: RegExp;
export declare const jwtTokenRegex: RegExp;
export declare const sfdxAuthUrlRegex: RegExp;
/**
 * Tests whether a given string is an opaque access token, a JWT token, or neither.
 *
 * @param value
 */
export declare function matchesAccessToken(value: string): boolean;
/**
 * Tests whether a given string is an opaque access token.
 *
 * @param value
 */
export declare const matchesOpaqueAccessToken: (value: string) => boolean;
/**
 * Tests whether a given string is a JWT-formatted access token.
 *
 * @param value
 */
export declare const matchesJwtAccessToken: (value: string) => boolean;
