import { HttpErrorResultType, UnexpectedHttpError } from "../results/error/HttpErrorResult.cjs"; import { BasicRequestOptions } from "./requestOptions.cjs"; import { CheckRootContainerSuccess } from "../results/success/CheckRootContainerSuccess.cjs"; import { SolidContainer } from "../../resources/SolidContainer.cjs"; import { UnexpectedResourceError } from "@ldo/connected"; //#region src/requester/requests/checkRootContainer.d.ts /** * checkRootContainer result */ type CheckRootResult = CheckRootContainerSuccess | CheckRootResultError; /** * All possible errors checkRootResult can return */ type CheckRootResultError = HttpErrorResultType | UnexpectedHttpError | UnexpectedResourceError; /** * @internal * Checks provided headers to see if a given URI is a root container as defined * in the [solid specification section 4.1](https://solidproject.org/TR/protocol#storage-resource) * * @param uri - the URI of the container resource * @param headers - headers returned when making a GET request to the resource * @returns CheckRootContainerSuccess if there is not error */ declare function checkHeadersForRootContainer(resource: SolidContainer, headers: Headers): CheckRootContainerSuccess; /** * @internal * * Performs a request to the Pod to check if the given URI is a root container * as defined in the [solid specification section 4.1](https://solidproject.org/TR/protocol#storage-resource) * * @param resource - the the container resource * @param options - options variable to pass a fetch function * @returns CheckResourceSuccess if there is no error */ declare function checkRootContainer(resource: SolidContainer, options?: BasicRequestOptions): Promise; //#endregion export { CheckRootResult, CheckRootResultError, checkHeadersForRootContainer, checkRootContainer }; //# sourceMappingURL=checkRootContainer.d.cts.map