import { SolidLeafUri } from "../types.mjs"; import { HttpErrorResultType } from "../requester/results/error/HttpErrorResult.mjs"; import { BasicRequestOptions } from "../requester/requests/requestOptions.mjs"; import { WacRule } from "./WacRule.mjs"; import { SetWacRuleSuccess } from "./results/SetWacRuleSuccess.mjs"; import { SolidContainer } from "../resources/SolidContainer.mjs"; import { SolidLeaf } from "../resources/SolidLeaf.mjs"; import { UnexpectedResourceError } from "@ldo/connected"; //#region src/wac/setWacRule.d.ts type SetWacRuleError = HttpErrorResultType | UnexpectedResourceError; type SetWacRuleResult = SetWacRuleSuccess | SetWacRuleError; /** * Given the URI of an ACL document and some WAC rules, set the WAC rules of * that document * @param aclUri: The URI for the ACL document * @param newRule: A new WAC rule to set. This will overwrite old rules * @param accessTo: The document this rule refers to * @param options: Options object to include an authenticated fetch function * @returns SetWacRuleResult */ declare function setWacRuleForAclUri(aclUri: SolidLeafUri, newRule: WacRule, resource: SolidContainer, options?: BasicRequestOptions): Promise>; declare function setWacRuleForAclUri(aclUri: SolidLeafUri, newRule: WacRule, resource: SolidLeaf, options?: BasicRequestOptions): Promise>; declare function setWacRuleForAclUri(aclUri: SolidLeafUri, newRule: WacRule, resource: SolidContainer | SolidLeaf, options?: BasicRequestOptions): Promise>; //#endregion export { SetWacRuleError, SetWacRuleResult, setWacRuleForAclUri }; //# sourceMappingURL=setWacRule.d.mts.map