/**
 * Minimal protocol-bound scope shape used by permission grant authorization.
 *
 * Permission grants and candidate records/filters are projected down to these
 * fields before matching so grant selection and server enforcement use the
 * same rules.
 */
export type ProtocolScope = {
    protocol?: string;
    protocolPath?: string;
    contextId?: string;
};
/**
 * Shared matching rules for protocol-scoped permission grants.
 *
 * Matching fails closed for invalid combinations: `protocolPath` and
 * `contextId` are mutually exclusive, and either field requires `protocol`.
 * `protocol` and `protocolPath` match by exact equality. `contextId` scopes
 * match a context subtree: the target context must equal the scoped context or
 * begin with the scoped context followed by `/`.
 */
export declare class PermissionScopeMatcher {
    /**
     * Determines whether a candidate target is within a grant scope.
     */
    static matches(scope: ProtocolScope, target: ProtocolScope): boolean;
    private static matchesContextId;
}
//# sourceMappingURL=permission-scope.d.ts.map