{"version":3,"file":"sequences-DdjfKnKU.d.cts","names":["Reference","ManifestNormalized","RangeNormalized","CompatVault","createSequenceHelper","getVisibleCanvasesFromCanvasId","getManifestSequence","disablePaging","skipNonPaged"],"sources":["../src/sequences.d.ts"],"sourcesContent":["import { Reference } from '@iiif/presentation-3';\nimport { ManifestNormalized, RangeNormalized } from '@iiif/presentation-3-normalized';\nimport { CompatVault } from './compat';\nexport declare function createSequenceHelper(vault?: CompatVault): {\n    getVisibleCanvasesFromCanvasId: (manifestOrRange: ManifestNormalized | RangeNormalized, canvasId: string | null, preventPaged?: boolean) => {\n        type: \"Canvas\";\n        id: string;\n    }[];\n    getManifestSequence: (manifestOrRange: ManifestNormalized | RangeNormalized, options?: {\n        disablePaging?: boolean;\n        skipNonPaged?: boolean;\n    }) => [{\n        type: \"Canvas\";\n        id: string;\n    }[], number[][]];\n};\n/**\n * Get visible canvases from canvas ID\n *\n * This function returns a list of canvas references that should all be displayed\n * when the passed canvasId is visible. This should work for individual items,\n * 2-up paged view and continuous (scrolls).\n *\n * The options are listed below (from IIIF docs)\n *\n * - `unordered` - Valid on Collections, Manifests and Ranges. The Canvases included in resources that have this behavior\n *    have no inherent order, and user interfaces should avoid implying an order to the user. Disjoint with individuals,\n *    continuous, and paged.\n *\n * - `individuals` - Valid on Collections, Manifests, and Ranges. For Collections that have this behavior, each of the\n *    included Manifests are distinct objects in the given order. For Manifests and Ranges, the included Canvases are\n *    distinct views, and should not be presented in a page-turning interface. This is the default layout behavior if\n *    not specified. Disjoint with unordered, continuous, and paged.\n *\n * - `continuous`  Valid on Collections, Manifests and Ranges, which include Canvases that have at least height and\n *    width dimensions. Canvases included in resources that have this behavior are partial views and an appropriate\n *    rendering might display all of the Canvases virtually stitched together, such as a long scroll split into\n *    sections. This behavior has no implication for audio resources. The viewingDirection of the Manifest will\n *    determine the appropriate arrangement of the Canvases. Disjoint with unordered, individuals and paged.\n *\n * - `paged`  Valid on Collections, Manifests and Ranges, which include Canvases that have at least height and width\n *    dimensions. Canvases included in resources that have this behavior represent views that should be presented in\n *    a page-turning interface if one is available. The first canvas is a single view (the first recto) and thus the\n *    second canvas likely represents the back of the object in the first canvas. If this is not the case, see the\n *    behavior value non-paged. Disjoint with unordered, individuals, continuous, facing-pages and non-paged.\n *\n */\nexport declare function getVisibleCanvasesFromCanvasId(vault: CompatVault | undefined, manifestOrRange: ManifestNormalized | RangeNormalized, canvasId: string | null, preventPaged?: boolean): Reference<'Canvas'>[];\nexport declare function getManifestSequence(vault: CompatVault | undefined, manifestOrRange: ManifestNormalized | RangeNormalized, { disablePaging, skipNonPaged }?: {\n    disablePaging?: boolean;\n    skipNonPaged?: boolean;\n}): [Reference<'Canvas'>[], number[][]];\n"],"mappings":";;;;;iBAGwBI,oBAAAA,SAA6BD;oDACCF,qBAAqBC;IADnDE,IAAAA,EAAAA,QAAAA;IAA6BD,EAAAA,EAAAA,MAAAA;EACCF,CAAAA,EAAAA;EAAqBC,mBAAAA,EAAAA,CAAAA,eAAAA,EAIhCD,kBAJgCC,GAIXA,eAJWA,EAAAA,OAII,CAJJA,EAAAA;IAIhCD,aAAAA,CAAAA,EAAAA,OAAAA;IAAqBC,YAAAA,CAAAA,EAAAA,OAAAA;EAAe,CAAA,EAAA,GAAA,CAAA;IAuCvDG,IAAAA,EAAAA,QAAAA;IAAsCF,EAAAA,EAAAA,MAAAA;EAA0CF,CAAAA,EAAAA,EAAAA,MAAAA,EAAAA,EAAAA,CAAAA;CAAqBC;;;AAC7H;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBADwBG,8BAAAA,QAAsCF,0CAA0CF,qBAAqBC,mEAAmEF;iBACxKM,mBAAAA,QAA2BH,0CAA0CF,qBAAqBC;;;;;;KAG7GF"}