/* eslint-disable */ /* tslint:disable */ /** * This is an autogenerated file created by the Stencil compiler. * It contains typing information for all components that exist in this project. */ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime"; import { Attachment, HttpProblem, LdpContainer, Literal, NetworkProblem, PodOS, Problem, Relation, SolidFile, Thing } from "@pod-os/core"; import { SwitchCaseRule } from "./components/pos-switch/rules"; import { ToolConfig } from "./components/pos-type-router/selectToolsForTypes"; import { ResultAsync } from "neverthrow"; export { Attachment, HttpProblem, LdpContainer, Literal, NetworkProblem, PodOS, Problem, Relation, SolidFile, Thing } from "@pod-os/core"; export { SwitchCaseRule } from "./components/pos-switch/rules"; export { ToolConfig } from "./components/pos-type-router/selectToolsForTypes"; export { ResultAsync } from "neverthrow"; export namespace Components { interface PosAddLiteralValue { } interface PosAddNewThing { "referenceUri": string; } /** * Add a new relation from the current resource to another one */ interface PosAddRelation { } interface PosApp { /** * @default false */ "restorePreviousSession": boolean; } interface PosAppBrowser { /** * The mode the app is running in: - standalone: use this when you deploy it as a standalone web application - pod: use this when you host this app as a default interface for you pod * @default 'standalone' */ "mode": 'standalone' | 'pod'; /** * @default false */ "restorePreviousSession": boolean; } interface PosAppDashboard { } interface PosAppDocumentViewer { } interface PosAppGeneric { } interface PosAppImageViewer { } interface PosAppLdpContainer { } interface PosAppRdfDocument { } interface PosAppSettings { } /** * Lists whatever is attached to the current thing */ interface PosAttachments { /** * Adds an attachment visually to the list of attachments. This only adds an entry to the list, it does not actually upload the attachment. It is meant to be used after an attachment has been uploaded to update the view. * @param attachment The attachment to add to the list. */ "addToList": (attachment: Attachment) => Promise; } /** * Defines a template to use if the specified condition is met - to be used with [pos-switch](https://pod-os.org/reference/elements/components/pos-switch/). * See [storybook](https://pod-os.github.io/PodOS/storybook/?path=/story/basics--pos-switch) for an example. */ interface PosCase { /** * Whether this case is active, i.e. shown. Usually this is controlled by the surrounding pos-switch, and there is no need to set this manually. * @default false */ "active": boolean; /** * The test only evaluates to true if tests for preceding cases have failed */ "else"?: boolean; /** * Test if every value linked by if-property or if-rev is equal to the attribute */ "everyValueEq"?: string; /** * Test if every value linked by if-property or if-rev is strictly greater than the attribute. First a number comparison is attempted, then string. */ "everyValueGt"?: string; /** * Test if every value linked by if-property or if-rev is greater than or equal to the attribute. First a number comparison is attempted, then string. */ "everyValueGte"?: string; /** * Test if every value linked by if-property or if-rev is strictly less than the attribute. First a number comparison is attempted, then string. */ "everyValueLt"?: string; /** * Test if every value linked by if-property or if-rev is less than or equal to the attribute. First a number comparison is attempted, then string. */ "everyValueLte"?: string; /** * Returns the rule definition for this case. The rule determines if the element's content gets rendered. */ "getRule": () => Promise; /** * Test if the resource has the specified property (forward link) */ "ifProperty"?: string; /** * Test if the resource is the subject of the specified property (backward link) */ "ifRev"?: string; /** * Test if the resource is of the specified type */ "ifTypeof"?: string; /** * Negates the result of the test */ "not"?: boolean; /** * Test if some value linked by if-property or if-rev is equal to the attribute */ "someValueEq"?: string; /** * Test if some value linked by if-property or if-rev is strictly greater than the attribute. First a number comparison is attempted, then string. */ "someValueGt"?: string; /** * Test if some value linked by if-property or if-rev is greater than or equal to the attribute. First a number comparison is attempted, then string. */ "someValueGte"?: string; /** * Test if some value linked by if-property or if-rev is strictly less than the attribute. First a number comparison is attempted, then string. */ "someValueLt"?: string; /** * Test if some value linked by if-property or if-rev is less than or equal to the attribute. First a number comparison is attempted, then string. */ "someValueLte"?: string; } interface PosContainerContents { } interface PosContainerItem { } interface PosContainerToolbar { } interface PosCreateNewContainerItem { "container": LdpContainer; "type": 'file' | 'folder'; } /** * Displays a description of the resource, as provided by [Thing.description()](https://pod-os.org/reference/core/classes/thing/#description). * Re-renders when data in the store changes using [Thing.observeDescription()](https://pod-os.org/reference/core/classes/thing/#observeDescription). */ interface PosDescription { } /** * Styled wrapper around native dialog element, with slots `title` and `content` */ interface PosDialog { "close": () => Promise; "showModal": () => Promise; } interface PosDocument { "alt": string; "src": string; } interface PosErrorToast { } interface PosExampleResources { } interface PosGettingStarted { } /** * Tries fetch an image with the solid authentication, and can visualize http errors like 403 or 404 if this fails. * Falls back to classic `` on network errors like CORS. * Renders a normal link if even this fails. */ interface PosImage { "alt": string; /** * Use a blurred version of the image as its own background, if the image is scaled down to fit into the container. * @default false */ "blurredBackground": boolean; "src": string; } interface PosInternalRouter { /** * @default 'pod-os:dashboard' */ "uri": string; } /** * Displays a human-readable label of the resource, as provided by [Thing.label()](https://pod-os.org/reference/core/classes/thing/#label). * Re-renders when data in the store changes using [Thing.observeLabel()](https://pod-os.org/reference/core/classes/thing/#observeLabel). */ interface PosLabel { } /** * Renders a template for each resource in a list. The list is either defined by a relation from the parent resource * or by a class for which instances will be listed. * `pos-list` must contain a `