/** * True when an array is safely recognizable as a `DependsOn` list to reorder. * Both conditions must hold: * * - Position: the array is the value of `DependsOn` sitting directly on a * resource definition, i.e. the path is exactly * `["Resources", , "DependsOn"]`. `DependsOn` only ever appears in * this position in CloudFormation, so it is scoped there and nowhere else. * - Shape: every element is a string. A single-string `DependsOn` (also valid) * is not an array and never reaches here; an array holding any non-string * element is left to the normal array handling. * * `DependsOn` order is insignificant in CloudFormation, so sorting it is safe. */ export declare function isDependsOnList(path: readonly string[], value: readonly unknown[]): boolean; /** * Returns a copy of a `DependsOn` array sorted alphabetically with the * deterministic {@link compareKeys}. The sort is stable; no element is dropped * or altered — only the order changes. * * Callers must first confirm the array with {@link isDependsOnList}. */ export declare function sortDependsOn(dependsOn: readonly unknown[]): unknown[];