/** * Checks whether a concrete resource ARN (possibly with wildcards) matches * a resource-type ARN pattern from the Service Authorization Reference. * * A wildcard resource string (`"*"`) always matches. * * This is a compatibility check: it returns true when there is at least one * concrete ARN that could satisfy both the resource string and the resource * type pattern. Resource type variables may span resource-component separators * such as `:` and `/`. * * @param resourceString - A concrete resource ARN or wildcard (`"*"`) * @param resourcePattern - An ARN pattern from iam-data (e.g. `arn:${Partition}:s3:::${BucketName}/${ObjectName}`) * @returns Whether the resource string matches the pattern */ export declare function resourceStringMatchesResourceTypePattern(resourceString: string, resourcePattern: string): boolean; /** * Reduce resource type patterns to the most specific patterns that match a resource string. * * This helper does not know about iam-data or service-specific resource type ordering. It uses * the provided pattern set as context and removes matching parent patterns when a matching child * pattern has all of the parent's literal structure plus additional literal structure. Wildcard * resource strings preserve all matches because the wildcard may refer to parent and child resources. * * @param resourceString - A concrete resource ARN or wildcard (`"*"`) * @param resourcePatterns - Candidate resource type ARN patterns * @returns Matching resource type patterns with less-specific parent patterns removed, in input order */ export declare function mostSpecificMatchingResourceTypePatterns(resourceString: string, resourcePatterns: string[]): string[]; //# sourceMappingURL=resourceTypes.d.ts.map