@cloud-copilot/iam-simulate
Version:
Simulate evaluation of AWS IAM policies
18 lines • 663 B
TypeScript
import { ConditionValueExplain } from '../../explain/statementExplain.js';
/**
* Parse a string to an epoch date value
*
* @param value the string to parse
* @returns the number or undefined if it cannot be parsed
*/
export declare function parseDate(value: string): number | undefined;
/**
* Test two values to see if they are dates or date epochs, if they are, run the check function
*
* @param policyValue
* @param testValue
* @param check
* @returns
*/
export declare function checkIfDate(policyValue: string, testValue: string, check: (policyValue: number, testValue: number) => boolean): ConditionValueExplain;
//# sourceMappingURL=date.d.ts.map