From 2f6f32d761a95108a3c77d10909b8471a6e311e7 Mon Sep 17 00:00:00 2001 From: Manuel Schiller <6340397+schiller-manuel@users.noreply.github.com> Date: Mon, 30 Nov 2026 02:31:57 +0100 Subject: [PATCH 1/6] chore(scripts): add an API Extractor report script scripts/api-report.mjs writes one API Extractor report per declaration file that a package's `exports` points at, to `api/.api.md`, from the published declarations in `dist` with no tsconfig `paths`. `--check` fails when a report is out of date, missing or left over. @microsoft/api-extractor 7.60.2 was already in the lockfile as a peer of vite-plugin-dts. Regenerating the lockfile also moved router-plugin's vite-plugin-solid to 2.11.17 and one ajv reference to 8.20.0. Co-Authored-By: Claude Opus 5.5 --- .prettierignore | 2 + package.json | 6 +- pnpm-lock.yaml | 35 ++- pnpm-workspace.yaml | 1 + scripts/api-report.mjs | 474 ++++++++++++++++++++++++++++++++++++ scripts/api-report.test.mjs | 177 ++++++++++++++ 6 files changed, 692 insertions(+), 3 deletions(-) create mode 100644 scripts/api-report.mjs create mode 100644 scripts/api-report.test.mjs diff --git a/.prettierignore b/.prettierignore index 6218cbf4dc..273ab31dbb 100644 --- a/.prettierignore +++ b/.prettierignore @@ -5,6 +5,8 @@ **/coverage **/dist **/dist-ts +# API Extractor reports, compared byte for byte by scripts/api-report.mjs. +packages/*/api/**/*.api.md pnpm-lock.yaml **/snapshots **/.vercel diff --git a/package.json b/package.json index 228cc63cc7..0679184a25 100644 --- a/package.json +++ b/package.json @@ -63,9 +63,11 @@ ], "targets": { "test:unit": { - "command": "node --test scripts/check-published-types.test.mjs scripts/internal-types-config.test.mjs", + "command": "node --test scripts/api-report.test.mjs scripts/check-published-types.test.mjs scripts/internal-types-config.test.mjs", "dependsOn": [], "inputs": [ + "{workspaceRoot}/scripts/api-report.mjs", + "{workspaceRoot}/scripts/api-report.test.mjs", "{workspaceRoot}/scripts/check-published-types.mjs", "{workspaceRoot}/scripts/check-published-types.test.mjs", "{workspaceRoot}/scripts/internal-types-config.mjs", @@ -75,6 +77,7 @@ "{workspaceRoot}/packages/**/*", { "externalDependencies": [ + "@microsoft/api-extractor", "typescript", "@types/node", "prettier" @@ -91,6 +94,7 @@ "devDependencies": { "@changesets/changelog-github": "^0.7.0", "@changesets/cli": "^2.30.0", + "@microsoft/api-extractor": "catalog:", "@nx/devkit": "24.0.0", "@playwright/test": "catalog:", "@swc-node/register": "^1.11.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a6777fe359..58a6d16039 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -176,6 +176,9 @@ catalogs: '@eslint-react/eslint-plugin': specifier: ^1.26.2 version: 1.26.2 + '@microsoft/api-extractor': + specifier: 7.60.2 + version: 7.60.2 '@rsbuild/core': specifier: ^2.3.1 version: 2.3.1 @@ -308,6 +311,9 @@ importers: '@changesets/cli': specifier: ^2.30.0 version: 2.30.0(@types/node@25.0.9) + '@microsoft/api-extractor': + specifier: 'catalog:' + version: 7.60.2(@types/node@25.0.9) '@nx/devkit': specifier: 24.0.0 version: 24.0.0(nx@24.0.0(@swc-node/register@1.11.1(@emnapi/core@1.11.3)(@emnapi/runtime@1.11.3)(@swc/core@1.15.33(@swc/helpers@0.5.23))(@swc/types@0.1.26)(@typescript/typescript6@6.0.2)(supports-color@10.2.2))(@swc/core@1.15.33(@swc/helpers@0.5.23))) @@ -15069,7 +15075,7 @@ importers: version: 8.3.8(@types/node@25.0.9)(esbuild@0.28.1)(jiti@2.7.0)(sass-embedded@1.105.1)(sass@1.97.2)(terser@5.51.2)(tsx@4.20.3)(yaml@2.9.0) vite-plugin-solid: specifier: ^2.11.10 || ^3.0.0-0 - version: 2.11.11(@testing-library/jest-dom@6.6.3)(solid-js@1.9.12)(supports-color@10.2.2)(vite@8.3.8(@types/node@25.0.9)(esbuild@0.28.1)(jiti@2.7.0)(sass-embedded@1.105.1)(sass@1.97.2)(terser@5.51.2)(tsx@4.20.3)(yaml@2.9.0)) + version: 2.11.17(@testing-library/jest-dom@6.6.3)(solid-js@1.9.12)(supports-color@10.2.2)(vite@8.3.8(@types/node@25.0.9)(esbuild@0.28.1)(jiti@2.7.0)(sass-embedded@1.105.1)(sass@1.97.2)(terser@5.51.2)(tsx@4.20.3)(yaml@2.9.0)) zod: specifier: 'catalog:' version: 4.5.4 @@ -29431,6 +29437,16 @@ packages: '@testing-library/jest-dom': optional: true + vite-plugin-solid@2.11.17: + resolution: {integrity: sha512-RBFS1nSdsL+X9zQ6gXdQ6SZJJnGykmQ5GIlFHcX/rD+9wfR69Ip+vhAFyWEgk9ya74VRPLjo544gCTyju4diqw==} + peerDependencies: + '@testing-library/jest-dom': ^5.16.6 || ^5.17.0 || ^6.0.0 || ^7.0.0 + solid-js: 1.9.12 + vite: ^8.3.8 + peerDependenciesMeta: + '@testing-library/jest-dom': + optional: true + vite-tsconfig-paths@6.1.1: resolution: {integrity: sha512-2cihq7zliibCCZ8P9cKJrQBkfgdvcFkOOc3Y02o3GWUDLgqjWsZudaoiuOwO/gzTzy17cS5F7ZPo4bsnS4DGkg==} peerDependencies: @@ -37949,7 +37965,7 @@ snapshots: ajv-formats@3.0.1: dependencies: - ajv: 8.17.1 + ajv: 8.20.0 ajv-keywords@3.5.2(ajv@6.12.6): dependencies: @@ -44838,6 +44854,21 @@ snapshots: transitivePeerDependencies: - supports-color + vite-plugin-solid@2.11.17(@testing-library/jest-dom@6.6.3)(solid-js@1.9.12)(supports-color@10.2.2)(vite@8.3.8(@types/node@25.0.9)(esbuild@0.28.1)(jiti@2.7.0)(sass-embedded@1.105.1)(sass@1.97.2)(terser@5.51.2)(tsx@4.20.3)(yaml@2.9.0)): + dependencies: + '@babel/core': 7.29.7(supports-color@10.2.2) + '@types/babel__core': 7.20.5 + babel-preset-solid: 1.9.10(@babel/core@7.29.7(supports-color@10.2.2))(solid-js@1.9.12) + merge-anything: 5.1.7 + solid-js: 1.9.12 + solid-refresh: 0.6.3(solid-js@1.9.12)(supports-color@10.2.2) + vite: 8.3.8(@types/node@25.0.9)(esbuild@0.28.1)(jiti@2.7.0)(sass-embedded@1.105.1)(sass@1.97.2)(terser@5.51.2)(tsx@4.20.3)(yaml@2.9.0) + vitefu: 1.1.3(vite@8.3.8(@types/node@25.0.9)(esbuild@0.28.1)(jiti@2.7.0)(sass-embedded@1.105.1)(sass@1.97.2)(terser@5.51.2)(tsx@4.20.3)(yaml@2.9.0)) + optionalDependencies: + '@testing-library/jest-dom': 6.6.3 + transitivePeerDependencies: + - supports-color + vite-tsconfig-paths@6.1.1(@typescript/typescript6@6.0.2)(supports-color@10.2.2)(vite@8.3.8(@types/node@25.0.9)(esbuild@0.27.4)(jiti@2.7.0)(sass-embedded@1.105.1)(sass@1.97.2)(terser@5.51.2)(tsx@4.20.3)(yaml@2.9.0)): dependencies: debug: 4.4.3(supports-color@10.2.2) diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index f26da0a4f3..da65f2f233 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -38,6 +38,7 @@ catalog: '@babel/core': ^7.29.7 '@babel/types': ^7.29.8 '@arethetypeswrong/cli': ^0.18.4 + '@microsoft/api-extractor': 7.60.2 '@eslint-react/eslint-plugin': ^1.26.2 '@rsbuild/core': ^2.3.1 '@tanstack/vite-config': 0.7.1 diff --git a/scripts/api-report.mjs b/scripts/api-report.mjs new file mode 100644 index 0000000000..fd10fd65c1 --- /dev/null +++ b/scripts/api-report.mjs @@ -0,0 +1,474 @@ +// Writes an API Extractor report of a package's public API, one per +// declaration file that `exports` points at, to `api/.api.md`. The +// reports are committed, so that every change to the public surface shows up +// as a diff: a new export or member nobody tagged `@internal`, or a public name +// that a stray `@internal` comment removed from the published declarations. +// +// The reports describe the published declarations in `dist` as a user sees +// them: no tsconfig `paths`, dependencies resolved through `node_modules` to +// their published `dist`. Build the package first. +// +// Run it from the repository root with package directories, or from a package +// directory without arguments: +// node scripts/api-report.mjs packages/router-core packages/history +// `--check` fails when a report is out of date, missing or left over instead of +// writing it. + +import fs from 'node:fs' +import { createRequire } from 'node:module' +import os from 'node:os' +import path from 'node:path' +import { fileURLToPath } from 'node:url' +import { + CompilerState, + Extractor, + ExtractorConfig, + ExtractorLogLevel, + ExtractorMessageCategory, +} from '@microsoft/api-extractor' +import ts from 'typescript' + +const require = createRequire(import.meta.url) +const repoRoot = path.resolve( + path.dirname(fileURLToPath(import.meta.url)), + '..', +) + +const reportDir = 'api' +const reportExtension = '.api.md' + +// What API Extractor reports, and what fails the check: +// - Compiler diagnostics fail, but with `skipLibCheck` API Extractor sees +// almost none: it reads only semantic diagnostics, and skips them for +// declaration files. Compiling the published declarations is the job of +// check-published-types.mjs, which runs before this script in `test:build` +// with `skipLibCheck: false`. +// - `ae-forgotten-export` goes into the report and does not fail: a public +// signature names a type that the entry point does not export. Users cannot +// name that type, which is worth seeing in a review. +// - `ae-missing-release-tag` and `ae-undocumented` are dropped. The packages +// use no release tags, so every name counts as `@public`, and the report +// already marks each item without a doc comment `(undocumented)`. +// - TSDoc syntax messages are dropped. The comments follow JSDoc, not TSDoc. +// - Every other API Extractor message fails, so that a new kind of problem is +// looked at before it is accepted. +const messages = { + compilerMessageReporting: { + default: { logLevel: 'error' }, + }, + extractorMessageReporting: { + default: { logLevel: 'error' }, + 'ae-forgotten-export': { logLevel: 'none', addToApiReportFile: true }, + 'ae-missing-release-tag': { logLevel: 'none' }, + 'ae-undocumented': { logLevel: 'none' }, + }, + tsdocMessageReporting: { + default: { logLevel: 'none' }, + }, +} + +export function generateReports(packageDir) { + packageDir = fs.realpathSync(packageDir) + const pkg = readJson(path.join(packageDir, 'package.json')) + const entries = findEntries(packageDir, pkg) + const compilerOptions = createCompilerOptions(packageDir) + const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'api-report-')) + const reports = new Map() + const problems = [] + + try { + // One program per declaration tree (`dist/esm`, `dist/source`, ...). The + // trees repeat the same `declare global` blocks, so a program that mixes + // them is not what any user compiles. + const trees = Map.groupBy(entries, (entry) => entry.tree) + for (const treeEntries of trees.values()) { + const files = treeEntries.map((entry) => + path.join(packageDir, entry.file), + ) + let compilerState + for (const [index, entry] of treeEntries.entries()) { + const reportName = `entry-${index}` + const config = ExtractorConfig.prepare({ + configObject: { + projectFolder: packageDir, + mainEntryPointFilePath: path.join(packageDir, entry.file), + bundledPackages: [], + newlineKind: 'lf', + compiler: { + overrideTsconfig: { compilerOptions, files }, + }, + apiReport: { + enabled: true, + reportFileName: reportName, + reportFolder: tmp, + reportTempFolder: path.join(tmp, 'temp'), + }, + docModel: { enabled: false }, + dtsRollup: { enabled: false }, + tsdocMetadata: { enabled: false }, + messages, + }, + configObjectFullPath: undefined, + packageJsonFullPath: path.join(packageDir, 'package.json'), + }) + compilerState ??= CompilerState.create(config) + const problemsBefore = problems.length + const result = Extractor.invoke(config, { + compilerState, + localBuild: true, + messageCallback(message) { + if ( + message.category !== ExtractorMessageCategory.Console && + (message.logLevel === ExtractorLogLevel.Error || + message.logLevel === ExtractorLogLevel.Warning) + ) { + problems.push(formatMessage(packageDir, entry, message)) + } + // Keep API Extractor's own console output quiet. Everything that + // matters is collected above. + message.handled = true + }, + }) + if (!result.succeeded && problems.length === problemsBefore) { + problems.push(`${entry.file}: API Extractor failed`) + } + const generated = fs.readFileSync( + path.join(tmp, reportName + reportExtension), + 'utf8', + ) + reports.set(entry.report, addEntryHeader(generated, packageDir, entry)) + } + } + } finally { + fs.rmSync(tmp, { recursive: true, force: true }) + } + + return { name: pkg.name, entries, reports, problems } +} + +// Compares generated reports with the committed ones. In write mode, writes +// the ones that differ and deletes the ones without an entry point. +export function syncReports(packageDir, reports, { write = false } = {}) { + packageDir = fs.realpathSync(packageDir) + const changes = [] + for (const [report, content] of reports) { + const file = path.join(packageDir, report) + const current = fs.existsSync(file) + ? fs.readFileSync(file, 'utf8').replaceAll('\r\n', '\n') + : undefined + if (current === content) { + continue + } + changes.push({ + report, + kind: current === undefined ? 'missing' : 'changed', + diff: current === undefined ? '' : lineDiff(current, content), + }) + if (write) { + fs.mkdirSync(path.dirname(file), { recursive: true }) + fs.writeFileSync(file, content) + } + } + for (const report of committedReports(packageDir)) { + if (reports.has(report)) { + continue + } + changes.push({ report, kind: 'leftover', diff: '' }) + if (write) { + fs.rmSync(path.join(packageDir, report)) + removeEmptyDirs(path.join(packageDir, reportDir)) + } + } + return changes.sort((a, b) => a.report.localeCompare(b.report)) +} + +// Every distinct declaration file that `exports` points at, except the CommonJS +// twins (`.d.cts`), which declare the same API. A file that several subpaths or +// conditions point at gets one report that lists all of them. +export function findEntries(packageDir, pkg) { + const byFile = new Map() + const visit = (value, subpath, conditions) => { + if (typeof value === 'string') { + if (!/\.d\.m?ts$/.test(value)) { + return + } + const file = path.posix.normalize(value) + let entry = byFile.get(file) + if (!entry) { + entry = { file, ...reportPath(file), imports: [] } + byFile.set(file, entry) + } + entry.imports.push({ + specifier: pkg.name + subpath.slice(1), + conditions: conditions.filter((c) => c !== 'types'), + }) + return + } + if (Array.isArray(value)) { + for (const item of value) { + visit(item, subpath, conditions) + } + return + } + if (value && typeof value === 'object') { + for (const [key, inner] of Object.entries(value)) { + visit(inner, subpath, [...conditions, key]) + } + } + } + + const exportsMap = pkg.exports + if (typeof exportsMap === 'string' || Array.isArray(exportsMap)) { + visit(exportsMap, '.', []) + } else if (exportsMap && typeof exportsMap === 'object') { + const subpaths = Object.keys(exportsMap) + if (subpaths.every((key) => key.startsWith('.'))) { + for (const subpath of subpaths) { + if (subpath.includes('*')) { + throw new Error( + `${pkg.name}: the exports pattern '${subpath}' is not supported`, + ) + } + visit(exportsMap[subpath], subpath, []) + } + } else { + visit(exportsMap, '.', []) + } + } + + const entries = [...byFile.values()].sort((a, b) => + a.report.localeCompare(b.report), + ) + const seen = new Map() + for (const entry of entries) { + if (seen.has(entry.report)) { + throw new Error( + `${pkg.name}: ${seen.get(entry.report)} and ${entry.file} would share the report ${entry.report}`, + ) + } + seen.set(entry.report, entry.file) + if (!fs.existsSync(path.join(packageDir, entry.file))) { + throw new Error(`${pkg.name}: ${entry.file} does not exist. Build first.`) + } + } + return entries +} + +// `./dist/esm/.d.ts` -> `api/.api.md`, the same +// mapping from `dist` to source that the Vite build uses. A tree other than +// `esm`, such as Solid's `dist/source`, keeps its name. +function reportPath(file) { + const relative = file.replace(/^\.\//, '') + const match = /^dist\/(.+)\.d\.m?ts$/.exec(relative) + if (!match) { + throw new Error(`${file} is not a declaration file under dist`) + } + const segments = match[1].split('/') + const esm = segments.indexOf('esm') + const tree = segments.slice(0, esm === -1 ? 1 : esm + 1).join('/') + const name = + esm === -1 + ? segments.join('/') + : [...segments.slice(0, esm), ...segments.slice(esm + 1)].join('/') + return { + file: relative, + tree, + report: `${reportDir}/${name}${reportExtension}`, + } +} + +function createCompilerOptions(packageDir) { + // The same fixed options that check-published-types.mjs compiles with, in + // tsconfig form. Only the JSX settings come from the package's tsconfig. + const options = { + target: 'ES2022', + module: 'ESNext', + moduleResolution: 'Bundler', + lib: ['ESNext', 'DOM', 'DOM.Iterable', 'DOM.AsyncIterable'], + types: ['node'], + typeRoots: [ + path.dirname(path.dirname(require.resolve('@types/node/package.json'))), + ], + strict: true, + skipLibCheck: true, + } + const configPath = path.join(packageDir, 'tsconfig.json') + if (fs.existsSync(configPath)) { + const { config } = ts.readConfigFile(configPath, ts.sys.readFile) + const parsed = ts.parseJsonConfigFileContent(config, ts.sys, packageDir) + if (parsed.options.jsx !== undefined) { + options.jsx = jsxNames[parsed.options.jsx] + } + if (parsed.options.jsxImportSource !== undefined) { + options.jsxImportSource = parsed.options.jsxImportSource + } + } + return options +} + +const jsxNames = { + [ts.JsxEmit.Preserve]: 'preserve', + [ts.JsxEmit.React]: 'react', + [ts.JsxEmit.ReactNative]: 'react-native', + [ts.JsxEmit.ReactJSX]: 'react-jsx', + [ts.JsxEmit.ReactJSXDev]: 'react-jsxdev', +} + +// Names the declaration file and the import paths that reach it, after API +// Extractor's own header. +function addEntryHeader(report, packageDir, entry) { + const marker = '> Do not edit this file.' + const lines = report.split('\n') + const at = lines.findIndex((line) => line.startsWith(marker)) + if (at === -1) { + throw new Error(`${entry.file}: unexpected API Extractor report header`) + } + const header = [ + '', + `> Declarations: \`${entry.file}\`. Regenerate with \`node scripts/api-report.mjs ${packageArgument(packageDir)}\` after a build.`, + '>', + '> Imported as:', + '>', + ...entry.imports.map( + ({ specifier, conditions }) => + `> - \`${specifier}\`${conditions.length > 0 ? ` (${conditions.map((c) => `\`${c}\``).join(' > ')})` : ''}`, + ), + ] + lines.splice(at + 1, 0, ...header) + return lines.join('\n') +} + +// The package directory relative to the repository root, the way the reports +// and messages name it. A package outside the repository, such as a test +// fixture, is named by its folder, so that no absolute path gets written. +function packageArgument(packageDir) { + const relative = path.relative(repoRoot, packageDir) + return relative.startsWith('..') || path.isAbsolute(relative) + ? path.basename(packageDir) + : relative.split(path.sep).join('/') +} + +function formatMessage(packageDir, entry, message) { + const location = message.sourceFilePath + ? `${path.relative(packageDir, message.sourceFilePath)}:${message.sourceFileLine ?? '-'}` + : entry.file + return `${location} ${message.messageId}: ${message.text}` +} + +function committedReports(packageDir) { + const dir = path.join(packageDir, reportDir) + if (!fs.existsSync(dir)) { + return [] + } + return fs + .readdirSync(dir, { recursive: true, withFileTypes: true }) + .filter((entry) => entry.isFile() && entry.name.endsWith(reportExtension)) + .map((entry) => + path + .relative(packageDir, path.join(entry.parentPath, entry.name)) + .split(path.sep) + .join('/'), + ) +} + +function removeEmptyDirs(dir) { + if (!fs.existsSync(dir)) { + return + } + for (const entry of fs.readdirSync(dir, { withFileTypes: true })) { + if (entry.isDirectory()) { + removeEmptyDirs(path.join(dir, entry.name)) + } + } + if (fs.readdirSync(dir).length === 0) { + fs.rmdirSync(dir) + } +} + +// The lines that differ between two versions, after the common start and end, +// so that a failing check in CI shows what changed without a local run. +function lineDiff(before, after, limit = 40) { + const a = before.split('\n') + const b = after.split('\n') + let start = 0 + while (start < a.length && start < b.length && a[start] === b[start]) { + start++ + } + let endA = a.length + let endB = b.length + while (endA > start && endB > start && a[endA - 1] === b[endB - 1]) { + endA-- + endB-- + } + const lines = [ + `@@ line ${start + 1} @@`, + ...a.slice(start, endA).map((line) => `- ${line}`), + ...b.slice(start, endB).map((line) => `+ ${line}`), + ] + if (lines.length > limit + 1) { + return [ + ...lines.slice(0, limit + 1), + ` ... ${lines.length - limit - 1} more line(s)`, + ].join('\n') + } + return lines.join('\n') +} + +function readJson(file) { + return JSON.parse(fs.readFileSync(file, 'utf8')) +} + +if ( + process.argv[1] && + fs.realpathSync(process.argv[1]) === fileURLToPath(import.meta.url) +) { + const args = process.argv.slice(2) + const check = args.includes('--check') + const packageDirs = args.filter((arg) => !arg.startsWith('--')) + let failed = false + for (const packageDir of packageDirs.length > 0 + ? packageDirs + : [process.cwd()]) { + const start = performance.now() + const { name, reports, problems } = generateReports(packageDir) + const changes = syncReports(packageDir, reports, { write: !check }) + const seconds = ((performance.now() - start) / 1000).toFixed(1) + const packageArg = packageArgument(fs.realpathSync(packageDir)) + + if (problems.length > 0) { + failed = true + console.error( + `${name}: API Extractor reported ${problems.length} problem(s):\n ${problems.join('\n ').replaceAll('\n', '\n ')}`, + ) + } + if (check && changes.length > 0) { + failed = true + const describe = { + changed: 'differs from the published declarations', + missing: 'is missing', + leftover: 'has no entry point any more', + } + console.error( + [ + `${name}: ${changes.length} API report(s) out of date:`, + ...changes.flatMap(({ report, kind, diff }) => [ + ` ${packageArg}/${report} ${describe[kind]}`, + ...(diff ? [diff.replace(/^/gm, ' ')] : []), + ]), + `If the change to the public API is intended, build the package, run \`node scripts/api-report.mjs ${packageArg}\` from the repository root and commit the reports.`, + ].join('\n'), + ) + } else if (check) { + console.log( + `${name}: ${reports.size} API report(s) up to date (${seconds}s)`, + ) + } else { + console.log( + `${name}: wrote ${changes.length} of ${reports.size} API report(s) (${seconds}s)`, + ) + } + } + if (failed) { + process.exit(1) + } +} diff --git a/scripts/api-report.test.mjs b/scripts/api-report.test.mjs new file mode 100644 index 0000000000..121520318a --- /dev/null +++ b/scripts/api-report.test.mjs @@ -0,0 +1,177 @@ +import assert from 'node:assert/strict' +import fs from 'node:fs' +import os from 'node:os' +import path from 'node:path' +import test from 'node:test' +import { findEntries, generateReports, syncReports } from './api-report.mjs' + +const isServer = (variant) => ({ + import: { types: `./dist/esm/isServer/${variant}.d.ts` }, + require: { types: `./dist/cjs/isServer/${variant}.d.cts` }, +}) + +const pkg = { + name: 'core', + type: 'module', + exports: { + '.': { + solid: { types: './dist/source/index.d.ts' }, + import: { types: './dist/esm/index.d.ts' }, + require: { types: './dist/cjs/index.d.cts' }, + }, + './isServer': { + development: isServer('development'), + node: isServer('server'), + bun: isServer('server'), + default: isServer('client'), + }, + './package.json': './package.json', + }, +} + +// Declarations as the build writes them. +const files = { + 'package.json': JSON.stringify(pkg), + 'dist/esm/index.d.ts': [ + "export type { RouteMatch } from './Matches.js';", + "export { joinPaths } from './utils.js';", + ].join('\n'), + 'dist/esm/Matches.d.ts': [ + 'interface MatchExtensions {', + ' meta?: string;', + '}', + 'export interface RouteMatch extends MatchExtensions {', + ' id: string;', + '}', + ].join('\n'), + 'dist/esm/utils.d.ts': + 'export declare function joinPaths(a: string, b: string): string;', + 'dist/source/index.d.ts': "export type { RouteMatch } from '../esm/Matches';", + 'dist/esm/isServer/development.d.ts': + 'export declare const isServer: boolean | undefined;', + 'dist/esm/isServer/server.d.ts': 'export declare const isServer: true;', + 'dist/esm/isServer/client.d.ts': 'export declare const isServer: false;', +} + +function setup() { + const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'api-report-')) + for (const [file, content] of Object.entries(files)) { + const full = path.join(dir, file) + fs.mkdirSync(path.dirname(full), { recursive: true }) + fs.writeFileSync(full, content) + } + return dir +} + +test('reports each declaration file that exports points at once, without the CommonJS twins', (t) => { + const dir = setup() + t.after(() => fs.rmSync(dir, { recursive: true, force: true })) + + const entries = findEntries(dir, pkg) + + assert.deepEqual( + entries.map(({ file, report, imports }) => ({ + file, + report, + imports: imports.map((i) => `${i.specifier} ${i.conditions.join('>')}`), + })), + [ + { + file: 'dist/esm/index.d.ts', + report: 'api/index.api.md', + imports: ['core import'], + }, + { + file: 'dist/esm/isServer/client.d.ts', + report: 'api/isServer/client.api.md', + imports: ['core/isServer default>import'], + }, + { + file: 'dist/esm/isServer/development.d.ts', + report: 'api/isServer/development.api.md', + imports: ['core/isServer development>import'], + }, + { + file: 'dist/esm/isServer/server.d.ts', + report: 'api/isServer/server.api.md', + imports: ['core/isServer node>import', 'core/isServer bun>import'], + }, + { + file: 'dist/source/index.d.ts', + report: 'api/source/index.api.md', + imports: ['core solid'], + }, + ], + ) +}) + +test('writes reports of the public API that a second run leaves alone', (t) => { + const dir = setup() + t.after(() => fs.rmSync(dir, { recursive: true, force: true })) + + const { reports, problems } = generateReports(dir) + assert.deepEqual(problems, []) + const index = reports.get('api/index.api.md') + assert.match(index, /> Declarations: `dist\/esm\/index\.d\.ts`/) + assert.match(index, /> - `core` \(`import`\)/) + assert.match( + index, + /export function joinPaths\(a: string, b: string\): string;/, + ) + // A public signature that names a type the entry does not export. + assert.match( + index, + /\/\/ Warning: \(ae-forgotten-export\) The symbol "MatchExtensions" needs to be exported by the entry point index\.d\.ts/, + ) + assert.doesNotMatch(index, new RegExp(dir.replaceAll('\\', '\\\\'))) + + assert.equal(syncReports(dir, reports, { write: true }).length, 5) + assert.deepEqual(syncReports(dir, generateReports(dir).reports), []) +}) + +test('fails on an added or removed export, a missing report and a leftover report', (t) => { + const dir = setup() + t.after(() => fs.rmSync(dir, { recursive: true, force: true })) + syncReports(dir, generateReports(dir).reports, { write: true }) + + fs.appendFileSync( + path.join(dir, 'dist/esm/utils.d.ts'), + '\nexport declare function cleanPath(path: string): string;', + ) + fs.appendFileSync( + path.join(dir, 'dist/esm/index.d.ts'), + "\nexport { cleanPath } from './utils.js';", + ) + // What `stripInternal` does to a declaration tagged `@internal`. + fs.writeFileSync(path.join(dir, 'dist/esm/isServer/client.d.ts'), 'export {}') + fs.rmSync(path.join(dir, 'api/isServer/server.api.md')) + fs.writeFileSync(path.join(dir, 'api/removed.api.md'), '') + + const changes = syncReports(dir, generateReports(dir).reports) + + assert.deepEqual( + changes.map((c) => `${c.report} ${c.kind}`), + [ + 'api/index.api.md changed', + 'api/isServer/client.api.md changed', + 'api/isServer/server.api.md missing', + 'api/removed.api.md leftover', + ], + ) + assert.match( + changes[0].diff, + /^\+ export function cleanPath\(path: string\): string;$/m, + ) + assert.match(changes[1].diff, /^- export const isServer: false;$/m) +}) + +test('reads committed reports with Windows line endings as unchanged', (t) => { + const dir = setup() + t.after(() => fs.rmSync(dir, { recursive: true, force: true })) + const { reports } = generateReports(dir) + syncReports(dir, reports, { write: true }) + const file = path.join(dir, 'api/index.api.md') + fs.writeFileSync(file, fs.readFileSync(file, 'utf8').replaceAll('\n', '\r\n')) + + assert.deepEqual(syncReports(dir, reports), []) +}) From 43dc01466c4d86904206c59257a307feae86d1be Mon Sep 17 00:00:00 2001 From: Manuel Schiller <6340397+schiller-manuel@users.noreply.github.com> Date: Mon, 30 Nov 2026 02:32:00 +0100 Subject: [PATCH 2/6] chore(packages): add baseline API reports Generated by scripts/api-report.mjs from a fresh build, for router-core, history, the three router bindings and the Start packages, before any internals are hidden. Co-Authored-By: Claude Opus 5.5 --- packages/history/api/index.api.md | 160 + packages/react-router/api/index.api.md | 1217 ++++++++ packages/react-router/api/index.rsc.api.md | 1217 ++++++++ packages/react-router/api/ssr/client.api.md | 26 + packages/react-router/api/ssr/server.api.md | 53 + .../react-start-client/api/Hydrate.api.md | 78 + .../react-start-client/api/hydration.api.md | 89 + packages/react-start-client/api/index.api.md | 24 + packages/react-start-rsc/api/index.api.md | 82 + packages/react-start-rsc/api/index.rsc.api.md | 81 + .../api/plugin/rscCssTransform.api.md | 23 + .../react-start-rsc/api/plugin/vite.api.md | 30 + .../api/rsbuild/browser-decode.api.md | 21 + .../api/rsbuild/ssr-decode.api.md | 23 + .../api/serialization.client.api.md | 23 + .../api/serialization.server.api.md | 27 + packages/react-start-server/api/index.api.md | 39 + packages/react-start/api/client-only.api.md | 15 + packages/react-start/api/client-rpc.api.md | 18 + packages/react-start/api/client.api.md | 18 + .../api/default-entry/server.api.md | 30 + packages/react-start/api/hydration.api.md | 58 + packages/react-start/api/index.api.md | 68 + .../react-start/api/plugin/rsbuild.api.md | 25 + packages/react-start/api/plugin/vite.api.md | 25 + .../api/rsbuild/browser-decode.api.md | 18 + .../react-start/api/rsbuild/ssr-decode.api.md | 18 + packages/react-start/api/rsc.api.md | 18 + packages/react-start/api/rsc.rsc.api.md | 18 + .../api/rsc/serialization/client.api.md | 19 + .../api/rsc/serialization/server.api.md | 19 + packages/react-start/api/server-only.api.md | 15 + packages/react-start/api/server-rpc.api.md | 19 + packages/react-start/api/server.api.md | 18 + packages/react-start/api/server.rsc.api.md | 18 + packages/react-start/api/ssr-rpc.api.md | 19 + packages/router-core/api/index.api.md | 2655 +++++++++++++++++ .../router-core/api/isServer/client.api.md | 22 + .../api/isServer/development.api.md | 30 + .../router-core/api/isServer/server.api.md | 34 + .../scroll-restoration-script/client.api.md | 26 + .../scroll-restoration-script/server.api.md | 26 + packages/router-core/api/ssr/client.api.md | 124 + packages/router-core/api/ssr/server.api.md | 162 + packages/solid-router/api/index.api.md | 1174 ++++++++ packages/solid-router/api/source/index.api.md | 1174 ++++++++ .../solid-router/api/source/ssr/client.api.md | 23 + .../solid-router/api/source/ssr/server.api.md | 53 + packages/solid-router/api/ssr/client.api.md | 23 + packages/solid-router/api/ssr/server.api.md | 53 + .../solid-start-client/api/Hydrate.api.md | 78 + .../solid-start-client/api/hydration.api.md | 89 + packages/solid-start-client/api/index.api.md | 26 + packages/solid-start-server/api/index.api.md | 39 + packages/solid-start/api/client-only.api.md | 15 + packages/solid-start/api/client-rpc.api.md | 18 + packages/solid-start/api/client.api.md | 18 + .../api/default-entry/server.api.md | 30 + packages/solid-start/api/hydration.api.md | 58 + packages/solid-start/api/index.api.md | 67 + .../solid-start/api/plugin/rsbuild.api.md | 21 + packages/solid-start/api/plugin/vite.api.md | 21 + packages/solid-start/api/server-only.api.md | 15 + packages/solid-start/api/server-rpc.api.md | 19 + packages/solid-start/api/server.api.md | 18 + packages/solid-start/api/ssr-rpc.api.md | 19 + .../api/client-rpc/index.api.md | 50 + .../start-client-core/api/client/index.api.md | 25 + .../start-client-core/api/hydration.api.md | 198 ++ .../api/hydration/constants.api.md | 24 + .../api/hydration/runtime.api.md | 68 + packages/start-client-core/api/index.api.md | 736 +++++ packages/start-fn-stubs/api/index.api.md | 49 + packages/start-plugin-core/api/index.api.md | 113 + .../api/rsbuild/index.api.md | 122 + .../api/rsbuild/types.api.md | 47 + packages/start-plugin-core/api/utils.api.md | 39 + .../start-plugin-core/api/vite/index.api.md | 144 + .../start-server-core/api/constants.api.md | 20 + .../api/createServerRpc.api.md | 25 + .../start-server-core/api/createSsrRpc.api.md | 25 + packages/start-server-core/api/index.api.md | 281 ++ .../api/request-response.api.md | 115 + .../api/virtual-modules.api.md | 22 + .../api/index.api.md | 20 + .../start-storage-context/api/index.api.md | 47 + packages/vue-router/api/index.api.md | 1282 ++++++++ packages/vue-router/api/ssr/client.api.md | 33 + packages/vue-router/api/ssr/server.api.md | 63 + packages/vue-start-client/api/index.api.md | 39 + packages/vue-start-server/api/index.api.md | 49 + packages/vue-start/api/client-only.api.md | 15 + packages/vue-start/api/client-rpc.api.md | 18 + packages/vue-start/api/client.api.md | 18 + .../vue-start/api/default-entry/server.api.md | 30 + packages/vue-start/api/index.api.md | 43 + packages/vue-start/api/plugin/rsbuild.api.md | 21 + packages/vue-start/api/plugin/vite.api.md | 21 + packages/vue-start/api/server-only.api.md | 15 + packages/vue-start/api/server-rpc.api.md | 19 + packages/vue-start/api/server.api.md | 18 + packages/vue-start/api/ssr-rpc.api.md | 19 + 102 files changed, 13672 insertions(+) create mode 100644 packages/history/api/index.api.md create mode 100644 packages/react-router/api/index.api.md create mode 100644 packages/react-router/api/index.rsc.api.md create mode 100644 packages/react-router/api/ssr/client.api.md create mode 100644 packages/react-router/api/ssr/server.api.md create mode 100644 packages/react-start-client/api/Hydrate.api.md create mode 100644 packages/react-start-client/api/hydration.api.md create mode 100644 packages/react-start-client/api/index.api.md create mode 100644 packages/react-start-rsc/api/index.api.md create mode 100644 packages/react-start-rsc/api/index.rsc.api.md create mode 100644 packages/react-start-rsc/api/plugin/rscCssTransform.api.md create mode 100644 packages/react-start-rsc/api/plugin/vite.api.md create mode 100644 packages/react-start-rsc/api/rsbuild/browser-decode.api.md create mode 100644 packages/react-start-rsc/api/rsbuild/ssr-decode.api.md create mode 100644 packages/react-start-rsc/api/serialization.client.api.md create mode 100644 packages/react-start-rsc/api/serialization.server.api.md create mode 100644 packages/react-start-server/api/index.api.md create mode 100644 packages/react-start/api/client-only.api.md create mode 100644 packages/react-start/api/client-rpc.api.md create mode 100644 packages/react-start/api/client.api.md create mode 100644 packages/react-start/api/default-entry/server.api.md create mode 100644 packages/react-start/api/hydration.api.md create mode 100644 packages/react-start/api/index.api.md create mode 100644 packages/react-start/api/plugin/rsbuild.api.md create mode 100644 packages/react-start/api/plugin/vite.api.md create mode 100644 packages/react-start/api/rsbuild/browser-decode.api.md create mode 100644 packages/react-start/api/rsbuild/ssr-decode.api.md create mode 100644 packages/react-start/api/rsc.api.md create mode 100644 packages/react-start/api/rsc.rsc.api.md create mode 100644 packages/react-start/api/rsc/serialization/client.api.md create mode 100644 packages/react-start/api/rsc/serialization/server.api.md create mode 100644 packages/react-start/api/server-only.api.md create mode 100644 packages/react-start/api/server-rpc.api.md create mode 100644 packages/react-start/api/server.api.md create mode 100644 packages/react-start/api/server.rsc.api.md create mode 100644 packages/react-start/api/ssr-rpc.api.md create mode 100644 packages/router-core/api/index.api.md create mode 100644 packages/router-core/api/isServer/client.api.md create mode 100644 packages/router-core/api/isServer/development.api.md create mode 100644 packages/router-core/api/isServer/server.api.md create mode 100644 packages/router-core/api/scroll-restoration-script/client.api.md create mode 100644 packages/router-core/api/scroll-restoration-script/server.api.md create mode 100644 packages/router-core/api/ssr/client.api.md create mode 100644 packages/router-core/api/ssr/server.api.md create mode 100644 packages/solid-router/api/index.api.md create mode 100644 packages/solid-router/api/source/index.api.md create mode 100644 packages/solid-router/api/source/ssr/client.api.md create mode 100644 packages/solid-router/api/source/ssr/server.api.md create mode 100644 packages/solid-router/api/ssr/client.api.md create mode 100644 packages/solid-router/api/ssr/server.api.md create mode 100644 packages/solid-start-client/api/Hydrate.api.md create mode 100644 packages/solid-start-client/api/hydration.api.md create mode 100644 packages/solid-start-client/api/index.api.md create mode 100644 packages/solid-start-server/api/index.api.md create mode 100644 packages/solid-start/api/client-only.api.md create mode 100644 packages/solid-start/api/client-rpc.api.md create mode 100644 packages/solid-start/api/client.api.md create mode 100644 packages/solid-start/api/default-entry/server.api.md create mode 100644 packages/solid-start/api/hydration.api.md create mode 100644 packages/solid-start/api/index.api.md create mode 100644 packages/solid-start/api/plugin/rsbuild.api.md create mode 100644 packages/solid-start/api/plugin/vite.api.md create mode 100644 packages/solid-start/api/server-only.api.md create mode 100644 packages/solid-start/api/server-rpc.api.md create mode 100644 packages/solid-start/api/server.api.md create mode 100644 packages/solid-start/api/ssr-rpc.api.md create mode 100644 packages/start-client-core/api/client-rpc/index.api.md create mode 100644 packages/start-client-core/api/client/index.api.md create mode 100644 packages/start-client-core/api/hydration.api.md create mode 100644 packages/start-client-core/api/hydration/constants.api.md create mode 100644 packages/start-client-core/api/hydration/runtime.api.md create mode 100644 packages/start-client-core/api/index.api.md create mode 100644 packages/start-fn-stubs/api/index.api.md create mode 100644 packages/start-plugin-core/api/index.api.md create mode 100644 packages/start-plugin-core/api/rsbuild/index.api.md create mode 100644 packages/start-plugin-core/api/rsbuild/types.api.md create mode 100644 packages/start-plugin-core/api/utils.api.md create mode 100644 packages/start-plugin-core/api/vite/index.api.md create mode 100644 packages/start-server-core/api/constants.api.md create mode 100644 packages/start-server-core/api/createServerRpc.api.md create mode 100644 packages/start-server-core/api/createSsrRpc.api.md create mode 100644 packages/start-server-core/api/index.api.md create mode 100644 packages/start-server-core/api/request-response.api.md create mode 100644 packages/start-server-core/api/virtual-modules.api.md create mode 100644 packages/start-static-server-functions/api/index.api.md create mode 100644 packages/start-storage-context/api/index.api.md create mode 100644 packages/vue-router/api/index.api.md create mode 100644 packages/vue-router/api/ssr/client.api.md create mode 100644 packages/vue-router/api/ssr/server.api.md create mode 100644 packages/vue-start-client/api/index.api.md create mode 100644 packages/vue-start-server/api/index.api.md create mode 100644 packages/vue-start/api/client-only.api.md create mode 100644 packages/vue-start/api/client-rpc.api.md create mode 100644 packages/vue-start/api/client.api.md create mode 100644 packages/vue-start/api/default-entry/server.api.md create mode 100644 packages/vue-start/api/index.api.md create mode 100644 packages/vue-start/api/plugin/rsbuild.api.md create mode 100644 packages/vue-start/api/plugin/vite.api.md create mode 100644 packages/vue-start/api/server-only.api.md create mode 100644 packages/vue-start/api/server-rpc.api.md create mode 100644 packages/vue-start/api/server.api.md create mode 100644 packages/vue-start/api/ssr-rpc.api.md diff --git a/packages/history/api/index.api.md b/packages/history/api/index.api.md new file mode 100644 index 0000000000..5d1ac0226c --- /dev/null +++ b/packages/history/api/index.api.md @@ -0,0 +1,160 @@ +## API Report File for "@tanstack/history" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/index.d.ts`. Regenerate with `node scripts/api-report.mjs packages/history` after a build. +> +> Imported as: +> +> - `@tanstack/history` (`import`) + +```ts + +// Warning: (ae-forgotten-export) The symbol "ShouldAllowNavigation" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type BlockerFn = (args: BlockerFnArgs) => Promise | ShouldAllowNavigation; + +// @public (undocumented) +export type BlockerFnArgs = { + currentLocation: HistoryLocation; + nextLocation: HistoryLocation; + action: HistoryAction; +}; + +// @public +export function createBrowserHistory(opts?: { + parseLocation?: () => HistoryLocation; + createHref?: (path: string) => string; + window?: any; +}): RouterHistory; + +// @public +export function createHashHistory(opts?: { + window?: any; +}): RouterHistory; + +// @public (undocumented) +export function createHistory(opts: { + getLocation: () => HistoryLocation; + getLength: () => number; + pushState: (path: string, state: any) => void; + replaceState: (path: string, state: any) => void; + go: (n: number, ignoreBlocker: boolean) => void; + back: (ignoreBlocker: boolean) => void; + forward: (ignoreBlocker: boolean) => void; + createHref: (path: string) => string; + flush?: () => void; + destroy?: () => void; + onBlocked?: () => void; + getBlockers?: () => Array; + setBlockers?: (blockers: Array) => void; + notifyOnIndexChange?: boolean; +}): RouterHistory; + +// @public +export function createMemoryHistory(opts?: { + initialEntries: Array; + initialIndex?: number; +}): RouterHistory; + +// @public +export function createServerHistory(href: string): RouterHistory; + +// @public (undocumented) +export type HistoryAction = 'PUSH' | 'REPLACE' | 'FORWARD' | 'BACK' | 'GO'; + +// @public (undocumented) +export interface HistoryLocation extends ParsedPath { + // (undocumented) + state: ParsedHistoryState; +} + +// @public (undocumented) +export interface HistoryState { +} + +// @public (undocumented) +export interface NavigateOptions { + // (undocumented) + ignoreBlocker?: boolean; +} + +// @public (undocumented) +export type NavigationBlocker = { + blockerFn: BlockerFn; + enableBeforeUnload?: (() => boolean) | boolean; +}; + +// @public (undocumented) +export function normalizeProtocolRelative(url: string): string; + +// @public (undocumented) +export type ParsedHistoryState = HistoryState & { + key?: string; + __TSR_key?: string; + __TSR_index: number; +}; + +// @public (undocumented) +export interface ParsedPath { + // (undocumented) + hash: string; + // (undocumented) + href: string; + // (undocumented) + pathname: string; + // (undocumented) + search: string; +} + +// @public (undocumented) +export function parseHref(href: string, state: ParsedHistoryState | undefined): HistoryLocation; + +// @public (undocumented) +export interface RouterHistory { + // (undocumented) + back: (navigateOpts?: NavigateOptions) => void; + // (undocumented) + block: (blocker: NavigationBlocker) => () => void; + // (undocumented) + canGoBack: () => boolean; + // (undocumented) + createHref: (href: string) => string; + // (undocumented) + destroy: () => void; + // (undocumented) + flush: () => void; + // (undocumented) + forward: (navigateOpts?: NavigateOptions) => void; + // (undocumented) + _getBlockers: () => Array; + // (undocumented) + go: (index: number, navigateOpts?: NavigateOptions) => void; + // (undocumented) + _ignoreNextBeforeUnload?: (href: string) => void; + // (undocumented) + _ignoreSubscribers?: boolean; + // (undocumented) + length: number; + // (undocumented) + location: HistoryLocation; + // Warning: (ae-forgotten-export) The symbol "SubscriberHistoryAction" needs to be exported by the entry point index.d.ts + // + // (undocumented) + notify: (action: SubscriberHistoryAction) => void; + // (undocumented) + push: (path: string, state?: any, navigateOpts?: NavigateOptions) => void; + // (undocumented) + replace: (path: string, state?: any, navigateOpts?: NavigateOptions) => void; + // (undocumented) + subscribe: (cb: (opts: SubscriberArgs) => void) => () => void; + // Warning: (ae-forgotten-export) The symbol "SubscriberArgs" needs to be exported by the entry point index.d.ts + // + // (undocumented) + subscribers: Set<(opts: SubscriberArgs) => void>; +} + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/react-router/api/index.api.md b/packages/react-router/api/index.api.md new file mode 100644 index 0000000000..1e6a2f5569 --- /dev/null +++ b/packages/react-router/api/index.api.md @@ -0,0 +1,1217 @@ +## API Report File for "@tanstack/react-router" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/index.d.ts`. Regenerate with `node scripts/api-report.mjs packages/react-router` after a build. +> +> Imported as: +> +> - `@tanstack/react-router` (`import`) + +```ts + +import { AbsoluteToPath } from '@tanstack/router-core'; +import { ActiveOptions } from '@tanstack/router-core'; +import { AnyContext } from '@tanstack/router-core'; +import { AnyPathParams } from '@tanstack/router-core'; +import { AnyRedirect } from '@tanstack/router-core'; +import { AnyRoute } from '@tanstack/router-core'; +import { AnyRouteMatch } from '@tanstack/router-core'; +import { AnyRouter } from '@tanstack/router-core'; +import { AnyRouterWithContext } from '@tanstack/router-core'; +import { AnyRouteWithContext } from '@tanstack/router-core'; +import { AnySchema } from '@tanstack/router-core'; +import { AnySerializationAdapter } from '@tanstack/router-core'; +import { AnyValidator } from '@tanstack/router-core'; +import { AnyValidatorAdapter } from '@tanstack/router-core'; +import { AnyValidatorFn } from '@tanstack/router-core'; +import { AnyValidatorObj } from '@tanstack/router-core'; +import { AssetCrossOriginConfig } from '@tanstack/router-core'; +import { Assign } from '@tanstack/router-core'; +import { BaseRootRoute } from '@tanstack/router-core'; +import { BaseRoute } from '@tanstack/router-core'; +import { BaseRouteApi } from '@tanstack/router-core'; +import { BaseRouteOptions } from '@tanstack/router-core'; +import { BeforeLoadContextOptions } from '@tanstack/router-core'; +import { BeforeLoadContextParameter } from '@tanstack/router-core'; +import { BlockerFn } from '@tanstack/history'; +import { BuildLocationFn } from '@tanstack/router-core'; +import { BuildNextOptions } from '@tanstack/router-core'; +import { cleanPath } from '@tanstack/router-core'; +import { CommitLocationOptions } from '@tanstack/router-core'; +import { composeRewrites } from '@tanstack/router-core'; +import { Constrain } from '@tanstack/router-core'; +import { ConstrainLiteral } from '@tanstack/router-core'; +import { ContextAsyncReturnType } from '@tanstack/router-core'; +import { ContextOptions } from '@tanstack/router-core'; +import { ContextReturnType } from '@tanstack/router-core'; +import { ControllablePromise } from '@tanstack/router-core'; +import { ControlledPromise } from '@tanstack/router-core'; +import { createBrowserHistory } from '@tanstack/history'; +import { createControlledPromise } from '@tanstack/router-core'; +import { CreateFileRoute } from '@tanstack/router-core'; +import { createHashHistory } from '@tanstack/history'; +import { createHistory } from '@tanstack/history'; +import { CreateLazyFileRoute } from '@tanstack/router-core'; +import { createMemoryHistory } from '@tanstack/history'; +import { createRouterConfig } from '@tanstack/router-core'; +import { CreateRouterFn } from '@tanstack/router-core'; +import { createSerializationAdapter } from '@tanstack/router-core'; +import { deepEqual } from '@tanstack/router-core'; +import { DeepPartial } from '@tanstack/router-core'; +import { default as default_2 } from 'react'; +import { DEFAULT_PROTOCOL_ALLOWLIST } from '@tanstack/router-core'; +import { defaultParseSearch } from '@tanstack/router-core'; +import { defaultStringifySearch } from '@tanstack/router-core'; +import { DefaultValidator } from '@tanstack/router-core'; +import { defer } from '@tanstack/router-core'; +import { DeferredPromise } from '@tanstack/router-core'; +import { DeferredPromiseState } from '@tanstack/router-core'; +import { ErrorComponentProps } from '@tanstack/router-core'; +import { ErrorInfo } from 'react'; +import { ErrorRouteProps } from '@tanstack/router-core'; +import { Expand } from '@tanstack/router-core'; +import { FileBaseRouteOptions } from '@tanstack/router-core'; +import { FileRoutesByPath } from '@tanstack/router-core'; +import { FileRouteTypes } from '@tanstack/router-core'; +import { FromPathOption } from '@tanstack/router-core'; +import { FullSearchSchemaOption } from '@tanstack/router-core'; +import { functionalUpdate } from '@tanstack/router-core'; +import { HistoryAction } from '@tanstack/history'; +import { HistoryLocation } from '@tanstack/history'; +import { HistoryState } from '@tanstack/history'; +import { InferAllContext } from '@tanstack/router-core'; +import { InferAllParams } from '@tanstack/router-core'; +import { InferDescendantToPaths } from '@tanstack/router-core'; +import { InferFrom } from '@tanstack/router-core'; +import { InferFullSearchSchema } from '@tanstack/router-core'; +import { InferFullSearchSchemaInput } from '@tanstack/router-core'; +import { InferMaskFrom } from '@tanstack/router-core'; +import { InferMaskTo } from '@tanstack/router-core'; +import { InferSelected } from '@tanstack/router-core'; +import { InferShouldThrow } from '@tanstack/router-core'; +import { InferStrict } from '@tanstack/router-core'; +import { InferTo } from '@tanstack/router-core'; +import { interpolatePath } from '@tanstack/router-core'; +import { IntersectAssign } from '@tanstack/router-core'; +import { isMatch } from '@tanstack/router-core'; +import { isNotFound } from '@tanstack/router-core'; +import { isRedirect } from '@tanstack/router-core'; +import { joinPaths } from '@tanstack/router-core'; +import { JSX } from 'react/jsx-runtime'; +import { lazyFn } from '@tanstack/router-core'; +import { LazyRouteOptions } from '@tanstack/router-core'; +import { LinkOptions } from '@tanstack/router-core'; +import { ListenerFn } from '@tanstack/router-core'; +import { LoaderFnContext } from '@tanstack/router-core'; +import { LocationRewrite } from '@tanstack/router-core'; +import { LocationRewriteFunction } from '@tanstack/router-core'; +import { LooseAsyncReturnType } from '@tanstack/router-core'; +import { LooseReturnType } from '@tanstack/router-core'; +import { MakeOptionalPathParams } from '@tanstack/router-core'; +import { MakeOptionalSearchParams } from '@tanstack/router-core'; +import { MakeRemountDepsOptionsUnion } from '@tanstack/router-core'; +import { MakeRouteMatch } from '@tanstack/router-core'; +import { MakeRouteMatchUnion } from '@tanstack/router-core'; +import { Manifest } from '@tanstack/router-core'; +import { MaskOptions } from '@tanstack/router-core'; +import { MatchLocation } from '@tanstack/router-core'; +import { MatchRouteOptions } from '@tanstack/router-core'; +import { MergeAll } from '@tanstack/router-core'; +import { MetaDescriptor } from '@tanstack/router-core'; +import { NavigateFn } from '@tanstack/router-core'; +import { NavigateOptions } from '@tanstack/router-core'; +import { notFound } from '@tanstack/router-core'; +import { NotFoundError } from '@tanstack/router-core'; +import { NotFoundRouteProps } from '@tanstack/router-core'; +import { OptionalStructuralSharing } from '@tanstack/router-core'; +import { ParamsOptions } from '@tanstack/router-core'; +import { ParsedLocation } from '@tanstack/router-core'; +import { ParsedPath } from '@tanstack/history'; +import { ParseParamsFn } from '@tanstack/router-core'; +import { ParseRoute } from '@tanstack/router-core'; +import { parseSearchWith } from '@tanstack/router-core'; +import { PathParamOptions } from '@tanstack/router-core'; +import { PreloadableObj } from '@tanstack/router-core'; +import * as React_2 from 'react'; +import { ReactNode } from 'react'; +import { Redirect } from '@tanstack/router-core'; +import { redirect } from '@tanstack/router-core'; +import { RedirectOptions } from '@tanstack/router-core'; +import { Register } from '@tanstack/router-core'; +import { RegisteredRouter } from '@tanstack/router-core'; +import { RegisteredSerializableInput } from '@tanstack/router-core'; +import { RelativeToCurrentPath } from '@tanstack/router-core'; +import { RelativeToParentPath } from '@tanstack/router-core'; +import { RelativeToPath } from '@tanstack/router-core'; +import { RelativeToPathAutoComplete } from '@tanstack/router-core'; +import { RemountDepsOptions } from '@tanstack/router-core'; +import { RemoveLeadingSlashes } from '@tanstack/router-core'; +import { RemoveTrailingSlashes } from '@tanstack/router-core'; +import { replaceEqualDeep } from '@tanstack/router-core'; +import { ResolveAllContext } from '@tanstack/router-core'; +import { ResolveAllParamsFromParent } from '@tanstack/router-core'; +import { ResolvedRedirect } from '@tanstack/router-core'; +import { ResolveFullPath } from '@tanstack/router-core'; +import { ResolveFullSearchSchema } from '@tanstack/router-core'; +import { ResolveFullSearchSchemaInput } from '@tanstack/router-core'; +import { ResolveId } from '@tanstack/router-core'; +import { ResolveLoaderData } from '@tanstack/router-core'; +import { ResolveOptionalParams } from '@tanstack/router-core'; +import { ResolveParams } from '@tanstack/router-core'; +import { resolvePath } from '@tanstack/router-core'; +import { ResolveRelativePath } from '@tanstack/router-core'; +import { ResolveRequiredParams } from '@tanstack/router-core'; +import { ResolveRoute } from '@tanstack/router-core'; +import { ResolveRouteContext } from '@tanstack/router-core'; +import { ResolveSearchValidatorInput } from '@tanstack/router-core'; +import { ResolveSearchValidatorInputFn } from '@tanstack/router-core'; +import { ResolveUseLoaderData } from '@tanstack/router-core'; +import { ResolveUseLoaderDeps } from '@tanstack/router-core'; +import { ResolveUseParams } from '@tanstack/router-core'; +import { ResolveUseSearch } from '@tanstack/router-core'; +import { ResolveValidatorInput } from '@tanstack/router-core'; +import { ResolveValidatorInputFn } from '@tanstack/router-core'; +import { ResolveValidatorOutput } from '@tanstack/router-core'; +import { ResolveValidatorOutputFn } from '@tanstack/router-core'; +import { retainSearchParams } from '@tanstack/router-core'; +import { RootRoute as RootRoute_2 } from '@tanstack/router-core'; +import { RootRouteId } from '@tanstack/router-core'; +import { rootRouteId } from '@tanstack/router-core'; +import { RootRouteOptions } from '@tanstack/router-core'; +import { Route as Route_2 } from '@tanstack/router-core'; +import { RouteById } from '@tanstack/router-core'; +import { RouteConstraints } from '@tanstack/router-core'; +import { RouteContext } from '@tanstack/router-core'; +import { RouteContextFn } from '@tanstack/router-core'; +import { RouteContextOptions } from '@tanstack/router-core'; +import { RouteContextParameter } from '@tanstack/router-core'; +import { RouteIds } from '@tanstack/router-core'; +import { RouteLinkEntry } from '@tanstack/router-core'; +import { RouteLoaderEntry } from '@tanstack/router-core'; +import { RouteLoaderFn } from '@tanstack/router-core'; +import { RouteMask } from '@tanstack/router-core'; +import { RouteMatch } from '@tanstack/router-core'; +import { RouteOptions } from '@tanstack/router-core'; +import { RoutePathOptions } from '@tanstack/router-core'; +import { RoutePathOptionsIntersection } from '@tanstack/router-core'; +import { RoutePaths } from '@tanstack/router-core'; +import { RouterConstructorOptions } from '@tanstack/router-core'; +import { RouterContextOptions } from '@tanstack/router-core'; +import { RouterCore } from '@tanstack/router-core'; +import { RouterEvent } from '@tanstack/router-core'; +import { RouterEvents } from '@tanstack/router-core'; +import { RouterHistory } from '@tanstack/history'; +import { RouterListener } from '@tanstack/router-core'; +import { RouterManagedTag } from '@tanstack/router-core'; +import { RouterOptions } from '@tanstack/router-core'; +import { RouterState } from '@tanstack/router-core'; +import { RouteTypesById } from '@tanstack/router-core'; +import { ScrollRestorationEntry } from '@tanstack/router-core'; +import { ScrollRestorationOptions } from '@tanstack/router-core'; +import { SearchFilter } from '@tanstack/router-core'; +import { SearchMiddleware } from '@tanstack/router-core'; +import { SearchParamError } from '@tanstack/router-core'; +import { SearchParamOptions } from '@tanstack/router-core'; +import { SearchParser } from '@tanstack/router-core'; +import { SearchSchemaInput } from '@tanstack/router-core'; +import { SearchSerializer } from '@tanstack/router-core'; +import { Serializable } from '@tanstack/router-core'; +import { SerializableExtensions } from '@tanstack/router-core'; +import { SerializationAdapter } from '@tanstack/router-core'; +import { SerializerExtensions } from '@tanstack/router-core'; +import { StaticDataRouteOption } from '@tanstack/router-core'; +import { StrictOrFrom } from '@tanstack/router-core'; +import { StringifyParamsFn } from '@tanstack/router-core'; +import { stringifySearchWith } from '@tanstack/router-core'; +import { stripSearchParams } from '@tanstack/router-core'; +import { ThrowConstraint } from '@tanstack/router-core'; +import { ThrowOrOptional } from '@tanstack/router-core'; +import { ToMaskOptions } from '@tanstack/router-core'; +import { ToOptions } from '@tanstack/router-core'; +import { ToPathOption } from '@tanstack/router-core'; +import { ToSubOptions } from '@tanstack/router-core'; +import { ToSubOptionsProps } from '@tanstack/router-core'; +import { TrailingSlashOption } from '@tanstack/router-core'; +import { TrimPath } from '@tanstack/router-core'; +import { trimPath } from '@tanstack/router-core'; +import { TrimPathLeft } from '@tanstack/router-core'; +import { trimPathLeft } from '@tanstack/router-core'; +import { TrimPathRight } from '@tanstack/router-core'; +import { trimPathRight } from '@tanstack/router-core'; +import { UpdatableRouteOptions } from '@tanstack/router-core'; +import { UpdatableStaticRouteOption } from '@tanstack/router-core'; +import { UseLoaderDataResult } from '@tanstack/router-core'; +import { UseLoaderDepsResult } from '@tanstack/router-core'; +import { UseNavigateResult } from '@tanstack/router-core'; +import { UseParamsResult } from '@tanstack/router-core'; +import { UseRouteContextBaseOptions } from '@tanstack/router-core'; +import { UseRouteContextOptions } from '@tanstack/router-core'; +import { UseRouteContextResult } from '@tanstack/router-core'; +import { UseSearchResult } from '@tanstack/router-core'; +import { ValidateFromPath } from '@tanstack/router-core'; +import { ValidateId } from '@tanstack/router-core'; +import { ValidateJSON } from '@tanstack/router-core'; +import { ValidateNavigateOptions } from '@tanstack/router-core'; +import { ValidateNavigateOptionsArray } from '@tanstack/router-core'; +import { ValidateParams } from '@tanstack/router-core'; +import { ValidateRedirectOptions } from '@tanstack/router-core'; +import { ValidateRedirectOptionsArray } from '@tanstack/router-core'; +import { ValidateSearch } from '@tanstack/router-core'; +import { ValidateToPath } from '@tanstack/router-core'; +import { ValidateUseParamsResult } from '@tanstack/router-core'; +import { ValidateUseSearchResult } from '@tanstack/router-core'; +import { Validator } from '@tanstack/router-core'; +import { ValidatorAdapter } from '@tanstack/router-core'; +import { ValidatorFn } from '@tanstack/router-core'; +import { ValidatorObj } from '@tanstack/router-core'; + +export { AbsoluteToPath } + +// Warning: (ae-forgotten-export) The symbol "ActiveLinkOptionProps" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type ActiveLinkOptions = LinkOptions & ActiveLinkOptionProps; + +export { ActiveOptions } + +export { AnyContext } + +export { AnyPathParams } + +export { AnyRedirect } + +// @public (undocumented) +export type AnyRootRoute = RootRoute; + +export { AnyRoute } + +export { AnyRouteMatch } + +export { AnyRouter } + +export { AnyRouterWithContext } + +export { AnyRouteWithContext } + +export { AnySchema } + +export { AnySerializationAdapter } + +export { AnyValidator } + +export { AnyValidatorAdapter } + +export { AnyValidatorFn } + +export { AnyValidatorObj } + +// @public (undocumented) +export function Asset(asset: RouterManagedTag & { + nonce?: string; + preventScriptHoist?: boolean; +}): React_2.ReactElement | null; + +export { Assign } + +// @public (undocumented) +export type AsyncRouteComponent = RouteTypes['component'] & { + preload?: () => Promise | undefined; +}; + +// @public +export function Await(props: AwaitOptions & { + fallback?: React_2.ReactNode; + children: (result: T) => React_2.ReactNode; +}): JSX.Element; + +// @public (undocumented) +export type AwaitOptions = { + promise: Promise; +}; + +export { BaseRouteOptions } + +export { BeforeLoadContextOptions } + +export { BeforeLoadContextParameter } + +// Warning: (ae-forgotten-export) The symbol "PromptProps" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export function Block(opts: PromptProps): React_2.ReactNode; + +// Warning: (ae-forgotten-export) The symbol "LegacyPromptProps" needs to be exported by the entry point index.d.ts +// +// @public @deprecated (undocumented) +export function Block(opts: LegacyPromptProps): React_2.ReactNode; + +export { BlockerFn } + +export { BuildLocationFn } + +export { BuildNextOptions } + +// @public (undocumented) +export class CatchBoundary extends React_2.Component<{ + getResetKey: () => unknown; + children: React_2.ReactNode; + errorComponent?: ErrorRouteComponent; + onCatch?: (error: unknown, errorInfo: ErrorInfo) => void; +}> { + // (undocumented) + componentDidCatch(error: unknown, errorInfo: ErrorInfo): void; + // (undocumented) + static getDerivedStateFromError(error: unknown): { + error: unknown[]; + }; + // (undocumented) + static getDerivedStateFromProps(props: { + getResetKey: () => unknown; + }, state: { + resetKey?: unknown; + error: [unknown] | 0; + }): { + resetKey: unknown; + error: number; + } | { + resetKey: unknown; + error?: undefined; + }; + // (undocumented) + render(): string | number | bigint | boolean | React_2.ReactElement> | Iterable | Promise> | Iterable | null | undefined> | React_2.FunctionComponentElement | null | undefined; + // (undocumented) + reset: () => void; + // (undocumented) + state: { + error: [unknown] | 0; + resetKey?: unknown; + }; +} + +// @public (undocumented) +export function CatchNotFound(props: { + fallback?: (error: NotFoundError) => React_2.ReactElement; + onCatch?: (error: NotFoundError, errorInfo: ErrorInfo) => void; + children: React_2.ReactNode; +}): JSX.Element; + +export { cleanPath } + +// Warning: (ae-forgotten-export) The symbol "ClientOnlyProps" needs to be exported by the entry point index.d.ts +// +// @public +export function ClientOnly(input: ClientOnlyProps): JSX.Element; + +export { CommitLocationOptions } + +export { composeRewrites } + +export { Constrain } + +export { ContextAsyncReturnType } + +export { ContextOptions } + +export { ContextReturnType } + +export { ControllablePromise } + +export { ControlledPromise } + +export { createBrowserHistory } + +export { createControlledPromise } + +export { CreateFileRoute } + +// @public +export function createFileRoute(path?: TFilePath): FileRoute['createRoute']; + +export { createHashHistory } + +export { createHistory } + +export { CreateLazyFileRoute } + +// @public +export function createLazyFileRoute(id: TFilePath): (opts: LazyRouteOptions) => LazyRoute; + +// @public +export function createLazyRoute>(id: ConstrainLiteral>): (opts: LazyRouteOptions) => LazyRoute; + +// @public +export function createLink(Comp: Constrain ReactNode>): LinkComponent; + +// @public (undocumented) +export type CreateLinkProps = LinkProps; + +export { createMemoryHistory } + +// @public +export function createRootRoute = {}, TLoaderFn = undefined, TSSR = unknown, const TServerMiddlewares = unknown, THandlers = undefined>(options?: RootRouteOptions): RootRoute; + +// @public +export function createRootRouteWithContext(): = {}, TLoaderFn = undefined, TSSR = unknown, TServerMiddlewares = unknown>(options?: RootRouteOptions) => RootRoute; + +// @public +export function createRoute, TCustomId extends RouteConstraints['TCustomId'] = string, TId extends RouteConstraints['TId'] = ResolveId, TSearchValidator = undefined, TParams = ResolveParams, TRouteContextFn = AnyContext, TBeforeLoadFn = AnyContext, TLoaderDeps extends Record = {}, TLoaderFn = undefined, TChildren = unknown, TSSR = unknown, const TServerMiddlewares = unknown>(options: RouteOptions): Route; + +// @public (undocumented) +export function createRouteMask(opts: { + routeTree: TRouteTree; +} & ToMaskOptions, TFrom, TTo>): RouteMask; + +// @public +export const createRouter: CreateRouterFn; + +export { createRouterConfig } + +export { createSerializationAdapter } + +export { deepEqual } + +export { DEFAULT_PROTOCOL_ALLOWLIST } + +// @public (undocumented) +export function DefaultGlobalNotFound(): JSX.Element; + +export { defaultParseSearch } + +// @public (undocumented) +export interface DefaultRouteTypes { + // (undocumented) + component: ((props: TProps) => any) | default_2.LazyExoticComponent<(props: TProps) => any>; +} + +export { defaultStringifySearch } + +export { DefaultValidator } + +export { defer } + +export { DeferredPromise } + +export { DeferredPromiseState } + +// @public (undocumented) +export function ErrorComponent(input: { + error: unknown; +}): JSX.Element; + +export { ErrorComponentProps } + +// @public (undocumented) +export type ErrorRouteComponent = AsyncRouteComponent; + +export { ErrorRouteProps } + +export { Expand } + +export { FileBaseRouteOptions } + +// @public @deprecated (undocumented) +export class FileRoute { + constructor(path?: TFilePath | undefined, _opts?: { + silent: boolean; + }); + // (undocumented) + createRoute: , TRouteContextFn = AnyContext, TBeforeLoadFn = AnyContext, TLoaderDeps extends Record = {}, TLoaderFn = undefined, TChildren = unknown, TSSR = unknown, const TMiddlewares = unknown, THandlers = undefined>(options?: FileBaseRouteOptions & UpdatableRouteOptions) => Route_2; + // (undocumented) + path?: TFilePath | undefined; + // (undocumented) + silent?: boolean; +} + +// @public @deprecated (undocumented) +export function FileRouteLoader(_path: TFilePath): (loaderFn: Constrain>) => TLoaderFn; + +export { FileRoutesByPath } + +export { FileRouteTypes } + +export { FullSearchSchemaOption } + +export { functionalUpdate } + +// @public +export function getRouteApi(id: ConstrainLiteral>): RouteApi; + +// Warning: (ae-forgotten-export) The symbol "HeadContentProps" needs to be exported by the entry point index.d.ts +// +// @public +export function HeadContent(props: HeadContentProps): JSX.Element; + +export { HistoryLocation } + +export { HistoryState } + +export { InferAllContext } + +export { InferAllParams } + +export { InferDescendantToPaths } + +export { InferFrom } + +export { InferFullSearchSchema } + +export { InferFullSearchSchemaInput } + +export { InferMaskFrom } + +export { InferMaskTo } + +export { InferSelected } + +export { InferShouldThrow } + +export { InferStrict } + +// @public (undocumented) +export type InferStructuralSharing = TOptions extends { + structuralSharing: infer TStructuralSharing; +} ? TStructuralSharing : unknown; + +export { InferTo } + +export { interpolatePath } + +export { IntersectAssign } + +export { isMatch } + +export { isNotFound } + +export { isRedirect } + +export { joinPaths } + +export { lazyFn } + +// @public (undocumented) +export class LazyRoute { + constructor(opts: { + id: string; + } & LazyRouteOptions); + // (undocumented) + options: { + id: string; + } & LazyRouteOptions; + // Warning: (ae-forgotten-export) The symbol "UseLoaderDataRoute" needs to be exported by the entry point index.d.ts + // + // (undocumented) + useLoaderData: UseLoaderDataRoute; + // Warning: (ae-forgotten-export) The symbol "UseLoaderDepsRoute" needs to be exported by the entry point index.d.ts + // + // (undocumented) + useLoaderDeps: UseLoaderDepsRoute; + // Warning: (ae-forgotten-export) The symbol "UseMatchRoute" needs to be exported by the entry point index.d.ts + // + // (undocumented) + useMatch: UseMatchRoute; + // (undocumented) + useNavigate: () => UseNavigateResult; + // Warning: (ae-forgotten-export) The symbol "UseParamsRoute" needs to be exported by the entry point index.d.ts + // + // (undocumented) + useParams: UseParamsRoute; + // Warning: (ae-forgotten-export) The symbol "UseRouteContextRoute" needs to be exported by the entry point index.d.ts + // + // (undocumented) + useRouteContext: UseRouteContextRoute; + // Warning: (ae-forgotten-export) The symbol "UseSearchRoute" needs to be exported by the entry point index.d.ts + // + // (undocumented) + useSearch: UseSearchRoute; +} + +// @public +export function lazyRouteComponent, TKey extends keyof T = 'default'>(importer: () => Promise, exportName?: TKey): T[TKey] extends (props: infer TProps) => any ? AsyncRouteComponent : never; + +export { LazyRouteOptions } + +// @public +export const Link: LinkComponent<'a'>; + +// @public (undocumented) +export type LinkComponent = (props: LinkComponentProps) => React_2.ReactElement; + +// Warning: (ae-forgotten-export) The symbol "LinkComponentReactProps" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type LinkComponentProps = LinkComponentReactProps & LinkProps; + +export { LinkOptions } + +// Warning: (ae-forgotten-export) The symbol "LinkOptionsFn" needs to be exported by the entry point index.d.ts +// +// @public +export const linkOptions: LinkOptionsFn<'a'>; + +// Warning: (ae-forgotten-export) The symbol "LinkPropsChildren" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type LinkProps = ActiveLinkOptions & LinkPropsChildren; + +export { ListenerFn } + +export { LoaderFnContext } + +export { LocationRewrite } + +export { LocationRewriteFunction } + +export { LooseAsyncReturnType } + +export { LooseReturnType } + +// @public (undocumented) +export type MakeMatchRouteOptions = UseMatchRouteOptions & { + children?: ((params?: Expand['types']['allParams']>) => React_2.ReactNode) | React_2.ReactNode; +}; + +export { MakeOptionalPathParams } + +export { MakeRemountDepsOptionsUnion } + +export { MakeRouteMatch } + +export { MakeRouteMatchUnion } + +export { Manifest } + +// @public (undocumented) +export const Match: React_2.MemoExoticComponent<(input: { + routeId: string; +}) => JSX.Element>; + +// @public +export function Matches(): JSX.Element; + +export { MatchLocation } + +// @public +export function MatchRoute(props: MakeMatchRouteOptions): any; + +export { MatchRouteOptions } + +export { MergeAll } + +export { MetaDescriptor } + +// @public +export function Navigate(props: NavigateOptions): null; + +export { NavigateFn } + +export { NavigateOptions } + +export { notFound } + +export { NotFoundError } + +// @public (undocumented) +export class NotFoundRoute = {}, TLoaderFn = undefined, TChildren = unknown, TSSR = unknown, TServerMiddlewares = unknown> extends Route { + constructor(options: Omit, 'caseSensitive' | 'parseParams' | 'stringifyParams' | 'path' | 'id' | 'params'>); +} + +// @public (undocumented) +export type NotFoundRouteComponent = RouteTypes['component']; + +export { NotFoundRouteProps } + +// @public +export const Outlet: React_2.MemoExoticComponent<() => JSX.Element | null>; + +export { ParamsOptions } + +export { ParsedLocation } + +export { ParsedPath } + +export { ParseParamsFn } + +export { parseSearchWith } + +export { PathParamOptions } + +export { PreloadableObj } + +// @public +export const reactUse: ((usable: Promise | React_2.Context) => T) | undefined; + +export { Redirect } + +export { redirect } + +export { RedirectOptions } + +export { Register } + +export { RegisteredRouter } + +export { RegisteredSerializableInput } + +export { RelativeToCurrentPath } + +export { RelativeToParentPath } + +export { RelativeToPath } + +export { RelativeToPathAutoComplete } + +export { RemountDepsOptions } + +export { RemoveLeadingSlashes } + +export { RemoveTrailingSlashes } + +export { replaceEqualDeep } + +export { ResolveAllContext } + +export { ResolveAllParamsFromParent } + +export { ResolvedRedirect } + +export { ResolveFullPath } + +export { ResolveFullSearchSchema } + +export { ResolveFullSearchSchemaInput } + +export { ResolveId } + +export { ResolveLoaderData } + +export { ResolveOptionalParams } + +export { ResolveParams } + +export { resolvePath } + +export { ResolveRelativePath } + +export { ResolveRequiredParams } + +export { ResolveRoute } + +export { ResolveRouteContext } + +export { ResolveSearchValidatorInput } + +export { ResolveSearchValidatorInputFn } + +export { ResolveValidatorInput } + +export { ResolveValidatorInputFn } + +export { ResolveValidatorOutput } + +export { ResolveValidatorOutputFn } + +export { retainSearchParams } + +// @public (undocumented) +export class RootRoute = {}, in out TLoaderFn = undefined, in out TChildren = unknown, in out TFileRouteTypes = unknown, in out TSSR = unknown, in out TServerMiddlewares = unknown, in out THandlers = undefined> extends BaseRootRoute implements RootRoute_2 { + // @deprecated + constructor(options?: RootRouteOptions); + // Warning: (ae-forgotten-export) The symbol "LinkComponentRoute" needs to be exported by the entry point index.d.ts + // + // (undocumented) + Link: LinkComponentRoute<'/'>; + // (undocumented) + useLoaderData: UseLoaderDataRoute; + // (undocumented) + useLoaderDeps: UseLoaderDepsRoute; + // (undocumented) + useMatch: UseMatchRoute; + // (undocumented) + useNavigate: () => UseNavigateResult<"/">; + // (undocumented) + useParams: UseParamsRoute; + // (undocumented) + useRouteContext: UseRouteContextRoute; + // (undocumented) + useSearch: UseSearchRoute; +} + +export { RootRouteId } + +export { rootRouteId } + +export { RootRouteOptions } + +// @public @deprecated (undocumented) +export const rootRouteWithContext: typeof createRootRouteWithContext; + +// @public (undocumented) +export class Route, in out TCustomId extends RouteConstraints['TCustomId'] = string, in out TId extends RouteConstraints['TId'] = ResolveId, in out TSearchValidator = undefined, in out TParams = ResolveParams, in out TRouterContext = AnyContext, in out TRouteContextFn = AnyContext, in out TBeforeLoadFn = AnyContext, in out TLoaderDeps extends Record = {}, in out TLoaderFn = undefined, in out TChildren = unknown, in out TFileRouteTypes = unknown, in out TSSR = unknown, in out TServerMiddlewares = unknown, in out THandlers = undefined> extends BaseRoute implements Route_2 { + // @deprecated + constructor(options?: RouteOptions); + // (undocumented) + Link: LinkComponentRoute; + // (undocumented) + useLoaderData: UseLoaderDataRoute; + // (undocumented) + useLoaderDeps: UseLoaderDepsRoute; + // (undocumented) + useMatch: UseMatchRoute; + // (undocumented) + useNavigate: () => UseNavigateResult; + // (undocumented) + useParams: UseParamsRoute; + // (undocumented) + useRouteContext: UseRouteContextRoute; + // (undocumented) + useSearch: UseSearchRoute; +} + +// @public (undocumented) +export class RouteApi extends BaseRouteApi { + // @deprecated + constructor(input: { + id: TId; + }); + // (undocumented) + Link: LinkComponentRoute['fullPath']>; + // (undocumented) + notFound: (opts?: NotFoundError) => NotFoundError; + // (undocumented) + useLoaderData: UseLoaderDataRoute; + // (undocumented) + useLoaderDeps: UseLoaderDepsRoute; + // (undocumented) + useMatch: UseMatchRoute; + // (undocumented) + useNavigate: () => UseNavigateResult["fullPath"]>; + // (undocumented) + useParams: UseParamsRoute; + // (undocumented) + useRouteContext: UseRouteContextRoute; + // (undocumented) + useSearch: UseSearchRoute; +} + +export { RouteById } + +// @public (undocumented) +export type RouteComponent = AsyncRouteComponent<{}>; + +export { RouteConstraints } + +export { RouteContext } + +export { RouteContextFn } + +export { RouteContextOptions } + +export { RouteContextParameter } + +export { RouteIds } + +export { RouteLinkEntry } + +export { RouteLoaderFn } + +export { RouteMask } + +export { RouteMatch } + +export { RouteOptions } + +export { RoutePathOptions } + +export { RoutePathOptionsIntersection } + +// @public (undocumented) +export class Router = Record> extends RouterCore { + constructor(options: RouterConstructorOptions); +} + +export { RouterConstructorOptions } + +export { RouterContextOptions } + +// @public +export function RouterContextProvider = Record>(input: RouterProps & { + children: React_2.ReactNode; +}): JSX.Element; + +export { RouterEvent } + +export { RouterEvents } + +export { RouterHistory } + +export { RouterListener } + +export { RouterManagedTag } + +export { RouterOptions } + +// @public (undocumented) +export type RouterProps = Record> = Omit, NonNullable, TRouter['history'], TDehydrated>, 'context' | 'pathParamsAllowedCharacters'> & { + router: TRouter; + context?: Partial, NonNullable, TRouter['history'], TDehydrated>['context']>; +}; + +// @public +export function RouterProvider = Record>(input: RouterProps): JSX.Element; + +export { RouterState } + +// @public (undocumented) +export interface RouteTypes extends DefaultRouteTypes { +} + +// @public +export function ScriptOnce(input: { + children: string; +}): JSX.Element | null; + +// @public +export const Scripts: () => JSX.Element; + +// @public @deprecated (undocumented) +function ScrollRestoration_2(_props: ScrollRestorationOptions): null; +export { ScrollRestoration_2 as ScrollRestoration } + +export { SearchFilter } + +export { SearchMiddleware } + +export { SearchParamError } + +export { SearchParamOptions } + +export { SearchParser } + +export { SearchSchemaInput } + +export { SearchSerializer } + +export { Serializable } + +export { SerializableExtensions } + +export { SerializationAdapter } + +export { SerializerExtensions } + +// Warning: (ae-forgotten-export) The symbol "ShouldBlockFnArgs" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type ShouldBlockFn = (args: ShouldBlockFnArgs) => boolean | Promise; + +export { StaticDataRouteOption } + +export { StringifyParamsFn } + +export { stringifySearchWith } + +export { stripSearchParams } + +export { ToMaskOptions } + +export { ToOptions } + +export { ToPathOption } + +export { ToSubOptions } + +export { TrailingSlashOption } + +export { TrimPath } + +export { trimPath } + +export { TrimPathLeft } + +export { trimPathLeft } + +export { TrimPathRight } + +export { trimPathRight } + +export { UpdatableRouteOptions } + +export { UpdatableStaticRouteOption } + +// @public +export function useAwaited(input: AwaitOptions): T; + +// Warning: (ae-forgotten-export) The symbol "BlockerResolver" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export function useBlocker(opts: UseBlockerOpts): TWithResolver extends true ? BlockerResolver : void; + +// Warning: (ae-forgotten-export) The symbol "LegacyBlockerOpts" needs to be exported by the entry point index.d.ts +// +// @public @deprecated (undocumented) +export function useBlocker(blockerFnOrOpts?: LegacyBlockerOpts): BlockerResolver; + +// Warning: (ae-forgotten-export) The symbol "LegacyBlockerFn" needs to be exported by the entry point index.d.ts +// +// @public @deprecated (undocumented) +export function useBlocker(blockerFn?: LegacyBlockerFn, condition?: boolean | any): BlockerResolver; + +// @public (undocumented) +export type UseBlockerOpts = { + shouldBlockFn: ShouldBlockFn; + enableBeforeUnload?: boolean | (() => boolean); + disabled?: boolean; + withResolver?: TWithResolver; +}; + +// @public (undocumented) +export function useCanGoBack(): boolean; + +// Warning: (ae-forgotten-export) The symbol "UseMatchesBaseOptions" needs to be exported by the entry point index.d.ts +// Warning: (ae-forgotten-export) The symbol "StructuralSharingOption" needs to be exported by the entry point index.d.ts +// Warning: (ae-forgotten-export) The symbol "UseMatchesResult" needs to be exported by the entry point index.d.ts +// +// @public +export function useChildMatches(opts?: UseMatchesBaseOptions & StructuralSharingOption): UseMatchesResult; + +// @public (undocumented) +export function useElementScrollRestoration(options: ({ + id: string; + getElement?: () => Window | Element | undefined | null; +} | { + id?: string; + getElement: () => Window | Element | undefined | null; +}) & { + getKey?: (location: ParsedLocation) => string; +}): ScrollRestorationEntry | undefined; + +// @public +export function useHydrated(): boolean; + +// @public (undocumented) +export const useLayoutEffect: typeof React_2.useEffect; + +// @public +export function useLinkProps(options: UseLinkPropsOptions, forwardedRef?: React_2.ForwardedRef): React_2.ComponentPropsWithRef<'a'>; + +// Warning: (ae-forgotten-export) The symbol "UseLinkReactProps" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type UseLinkPropsOptions | string = string, TTo extends string | undefined = '.', TMaskFrom extends RoutePaths | string = TFrom, TMaskTo extends string = '.'> = ActiveLinkOptions<'a', TRouter, TFrom, TTo, TMaskFrom, TMaskTo> & UseLinkReactProps<'a'>; + +// Warning: (ae-forgotten-export) The symbol "UseLoaderDataOptions" needs to be exported by the entry point index.d.ts +// +// @public +export function useLoaderData(opts: UseLoaderDataOptions): UseLoaderDataResult; + +// Warning: (ae-forgotten-export) The symbol "UseLoaderDepsOptions" needs to be exported by the entry point index.d.ts +// +// @public +export function useLoaderDeps(opts: UseLoaderDepsOptions): UseLoaderDepsResult; + +// Warning: (ae-forgotten-export) The symbol "UseLocationBaseOptions" needs to be exported by the entry point index.d.ts +// Warning: (ae-forgotten-export) The symbol "UseLocationResult" needs to be exported by the entry point index.d.ts +// +// @public +export function useLocation(opts?: UseLocationBaseOptions & StructuralSharingOption): UseLocationResult; + +// Warning: (ae-forgotten-export) The symbol "UseMatchOptions" needs to be exported by the entry point index.d.ts +// Warning: (ae-forgotten-export) The symbol "UseMatchResult" needs to be exported by the entry point index.d.ts +// +// @public +export function useMatch(opts: UseMatchOptions, TSelected, TStructuralSharing>): ThrowOrOptional, TThrow>; + +// @public (undocumented) +export function useMatches(opts?: UseMatchesBaseOptions & StructuralSharingOption): UseMatchesResult; + +// @public +export function useMatchRoute(): (opts: UseMatchRouteOptions) => false | Expand['types']['allParams']>; + +// @public (undocumented) +export type UseMatchRouteOptions = ToSubOptionsProps & DeepPartial> & DeepPartial> & MaskOptions & MatchRouteOptions; + +// @public +export function useNavigate(_defaultOpts?: { + from?: FromPathOption; +}): UseNavigateResult; + +export { UseNavigateResult } + +// Warning: (ae-forgotten-export) The symbol "UseParamsOptions" needs to be exported by the entry point index.d.ts +// +// @public +export function useParams(opts: UseParamsOptions, TSelected, TStructuralSharing>): ThrowOrOptional, TThrow>; + +// @public +export function useParentMatches(opts?: UseMatchesBaseOptions & StructuralSharingOption): UseMatchesResult; + +// @public (undocumented) +export function useRouteContext(opts: UseRouteContextOptions): UseRouteContextResult; + +// @public +export function useRouter(opts?: { + warn?: boolean; +}): TRouter; + +// Warning: (ae-forgotten-export) The symbol "UseRouterStateOptions" needs to be exported by the entry point index.d.ts +// Warning: (ae-forgotten-export) The symbol "UseRouterStateResult" needs to be exported by the entry point index.d.ts +// +// @public +export function useRouterState(opts?: UseRouterStateOptions): UseRouterStateResult; + +// Warning: (ae-forgotten-export) The symbol "UseSearchOptions" needs to be exported by the entry point index.d.ts +// +// @public +export function useSearch(opts: UseSearchOptions, TSelected, TStructuralSharing>): ThrowOrOptional, TThrow>; + +// @public +export const useTags: (assetCrossOrigin?: AssetCrossOriginConfig) => RouterManagedTag[]; + +export { ValidateFromPath } + +export { ValidateId } + +// @public (undocumented) +export type ValidateLinkOptions = Constrain, InferTo, InferMaskFrom, InferMaskTo>>; + +// @public (undocumented) +export type ValidateLinkOptionsArray = ReadonlyArray, TDefaultFrom extends string = string, TComp = 'a'> = { + [K in keyof TOptions]: ValidateLinkOptions; +}; + +export { ValidateNavigateOptions } + +export { ValidateNavigateOptionsArray } + +export { ValidateParams } + +export { ValidateRedirectOptions } + +export { ValidateRedirectOptionsArray } + +export { ValidateSearch } + +export { ValidateToPath } + +// @public (undocumented) +export type ValidateUseParamsOptions = Constrain, InferStrict, InferShouldThrow, InferSelected, InferSelected>>; + +export { ValidateUseParamsResult } + +// @public (undocumented) +export type ValidateUseSearchOptions = Constrain, InferStrict, InferShouldThrow, InferSelected, InferStructuralSharing>>; + +export { ValidateUseSearchResult } + +export { Validator } + +export { ValidatorAdapter } + +export { ValidatorFn } + +export { ValidatorObj } + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/react-router/api/index.rsc.api.md b/packages/react-router/api/index.rsc.api.md new file mode 100644 index 0000000000..7d6b777936 --- /dev/null +++ b/packages/react-router/api/index.rsc.api.md @@ -0,0 +1,1217 @@ +## API Report File for "@tanstack/react-router" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/index.rsc.d.ts`. Regenerate with `node scripts/api-report.mjs packages/react-router` after a build. +> +> Imported as: +> +> - `@tanstack/react-router` (`react-server`) + +```ts + +import { AbsoluteToPath } from '@tanstack/router-core'; +import { ActiveOptions } from '@tanstack/router-core'; +import { AnyContext } from '@tanstack/router-core'; +import { AnyPathParams } from '@tanstack/router-core'; +import { AnyRedirect } from '@tanstack/router-core'; +import { AnyRoute } from '@tanstack/router-core'; +import { AnyRouteMatch } from '@tanstack/router-core'; +import { AnyRouter } from '@tanstack/router-core'; +import { AnyRouterWithContext } from '@tanstack/router-core'; +import { AnyRouteWithContext } from '@tanstack/router-core'; +import { AnySchema } from '@tanstack/router-core'; +import { AnySerializationAdapter } from '@tanstack/router-core'; +import { AnyValidator } from '@tanstack/router-core'; +import { AnyValidatorAdapter } from '@tanstack/router-core'; +import { AnyValidatorFn } from '@tanstack/router-core'; +import { AnyValidatorObj } from '@tanstack/router-core'; +import { AssetCrossOriginConfig } from '@tanstack/router-core'; +import { Assign } from '@tanstack/router-core'; +import { BaseRootRoute } from '@tanstack/router-core'; +import { BaseRoute } from '@tanstack/router-core'; +import { BaseRouteApi } from '@tanstack/router-core'; +import { BaseRouteOptions } from '@tanstack/router-core'; +import { BeforeLoadContextOptions } from '@tanstack/router-core'; +import { BeforeLoadContextParameter } from '@tanstack/router-core'; +import { BlockerFn } from '@tanstack/history'; +import { BuildLocationFn } from '@tanstack/router-core'; +import { BuildNextOptions } from '@tanstack/router-core'; +import { cleanPath } from '@tanstack/router-core'; +import { CommitLocationOptions } from '@tanstack/router-core'; +import { composeRewrites } from '@tanstack/router-core'; +import { Constrain } from '@tanstack/router-core'; +import { ConstrainLiteral } from '@tanstack/router-core'; +import { ContextAsyncReturnType } from '@tanstack/router-core'; +import { ContextOptions } from '@tanstack/router-core'; +import { ContextReturnType } from '@tanstack/router-core'; +import { ControllablePromise } from '@tanstack/router-core'; +import { ControlledPromise } from '@tanstack/router-core'; +import { createBrowserHistory } from '@tanstack/history'; +import { createControlledPromise } from '@tanstack/router-core'; +import { CreateFileRoute } from '@tanstack/router-core'; +import { createHashHistory } from '@tanstack/history'; +import { createHistory } from '@tanstack/history'; +import { CreateLazyFileRoute } from '@tanstack/router-core'; +import { createMemoryHistory } from '@tanstack/history'; +import { createRouterConfig } from '@tanstack/router-core'; +import { CreateRouterFn } from '@tanstack/router-core'; +import { createSerializationAdapter } from '@tanstack/router-core'; +import { deepEqual } from '@tanstack/router-core'; +import { DeepPartial } from '@tanstack/router-core'; +import { default as default_2 } from 'react'; +import { DEFAULT_PROTOCOL_ALLOWLIST } from '@tanstack/router-core'; +import { defaultParseSearch } from '@tanstack/router-core'; +import { defaultStringifySearch } from '@tanstack/router-core'; +import { DefaultValidator } from '@tanstack/router-core'; +import { defer } from '@tanstack/router-core'; +import { DeferredPromise } from '@tanstack/router-core'; +import { DeferredPromiseState } from '@tanstack/router-core'; +import { ErrorComponentProps } from '@tanstack/router-core'; +import { ErrorInfo } from 'react'; +import { ErrorRouteProps } from '@tanstack/router-core'; +import { Expand } from '@tanstack/router-core'; +import { FileBaseRouteOptions } from '@tanstack/router-core'; +import { FileRoutesByPath } from '@tanstack/router-core'; +import { FileRouteTypes } from '@tanstack/router-core'; +import { FromPathOption } from '@tanstack/router-core'; +import { FullSearchSchemaOption } from '@tanstack/router-core'; +import { functionalUpdate } from '@tanstack/router-core'; +import { HistoryAction } from '@tanstack/history'; +import { HistoryLocation } from '@tanstack/history'; +import { HistoryState } from '@tanstack/history'; +import { InferAllContext } from '@tanstack/router-core'; +import { InferAllParams } from '@tanstack/router-core'; +import { InferDescendantToPaths } from '@tanstack/router-core'; +import { InferFrom } from '@tanstack/router-core'; +import { InferFullSearchSchema } from '@tanstack/router-core'; +import { InferFullSearchSchemaInput } from '@tanstack/router-core'; +import { InferMaskFrom } from '@tanstack/router-core'; +import { InferMaskTo } from '@tanstack/router-core'; +import { InferSelected } from '@tanstack/router-core'; +import { InferShouldThrow } from '@tanstack/router-core'; +import { InferStrict } from '@tanstack/router-core'; +import { InferTo } from '@tanstack/router-core'; +import { interpolatePath } from '@tanstack/router-core'; +import { IntersectAssign } from '@tanstack/router-core'; +import { isMatch } from '@tanstack/router-core'; +import { isNotFound } from '@tanstack/router-core'; +import { isRedirect } from '@tanstack/router-core'; +import { joinPaths } from '@tanstack/router-core'; +import { JSX } from 'react/jsx-runtime'; +import { lazyFn } from '@tanstack/router-core'; +import { LazyRouteOptions } from '@tanstack/router-core'; +import { LinkOptions } from '@tanstack/router-core'; +import { ListenerFn } from '@tanstack/router-core'; +import { LoaderFnContext } from '@tanstack/router-core'; +import { LocationRewrite } from '@tanstack/router-core'; +import { LocationRewriteFunction } from '@tanstack/router-core'; +import { LooseAsyncReturnType } from '@tanstack/router-core'; +import { LooseReturnType } from '@tanstack/router-core'; +import { MakeOptionalPathParams } from '@tanstack/router-core'; +import { MakeOptionalSearchParams } from '@tanstack/router-core'; +import { MakeRemountDepsOptionsUnion } from '@tanstack/router-core'; +import { MakeRouteMatch } from '@tanstack/router-core'; +import { MakeRouteMatchUnion } from '@tanstack/router-core'; +import { Manifest } from '@tanstack/router-core'; +import { MaskOptions } from '@tanstack/router-core'; +import { MatchLocation } from '@tanstack/router-core'; +import { MatchRouteOptions } from '@tanstack/router-core'; +import { MergeAll } from '@tanstack/router-core'; +import { MetaDescriptor } from '@tanstack/router-core'; +import { NavigateFn } from '@tanstack/router-core'; +import { NavigateOptions } from '@tanstack/router-core'; +import { notFound } from '@tanstack/router-core'; +import { NotFoundError } from '@tanstack/router-core'; +import { NotFoundRouteProps } from '@tanstack/router-core'; +import { OptionalStructuralSharing } from '@tanstack/router-core'; +import { ParamsOptions } from '@tanstack/router-core'; +import { ParsedLocation } from '@tanstack/router-core'; +import { ParsedPath } from '@tanstack/history'; +import { ParseParamsFn } from '@tanstack/router-core'; +import { ParseRoute } from '@tanstack/router-core'; +import { parseSearchWith } from '@tanstack/router-core'; +import { PathParamOptions } from '@tanstack/router-core'; +import { PreloadableObj } from '@tanstack/router-core'; +import * as React_2 from 'react'; +import { ReactNode } from 'react'; +import { Redirect } from '@tanstack/router-core'; +import { redirect } from '@tanstack/router-core'; +import { RedirectOptions } from '@tanstack/router-core'; +import { Register } from '@tanstack/router-core'; +import { RegisteredRouter } from '@tanstack/router-core'; +import { RegisteredSerializableInput } from '@tanstack/router-core'; +import { RelativeToCurrentPath } from '@tanstack/router-core'; +import { RelativeToParentPath } from '@tanstack/router-core'; +import { RelativeToPath } from '@tanstack/router-core'; +import { RelativeToPathAutoComplete } from '@tanstack/router-core'; +import { RemountDepsOptions } from '@tanstack/router-core'; +import { RemoveLeadingSlashes } from '@tanstack/router-core'; +import { RemoveTrailingSlashes } from '@tanstack/router-core'; +import { replaceEqualDeep } from '@tanstack/router-core'; +import { ResolveAllContext } from '@tanstack/router-core'; +import { ResolveAllParamsFromParent } from '@tanstack/router-core'; +import { ResolvedRedirect } from '@tanstack/router-core'; +import { ResolveFullPath } from '@tanstack/router-core'; +import { ResolveFullSearchSchema } from '@tanstack/router-core'; +import { ResolveFullSearchSchemaInput } from '@tanstack/router-core'; +import { ResolveId } from '@tanstack/router-core'; +import { ResolveLoaderData } from '@tanstack/router-core'; +import { ResolveOptionalParams } from '@tanstack/router-core'; +import { ResolveParams } from '@tanstack/router-core'; +import { resolvePath } from '@tanstack/router-core'; +import { ResolveRelativePath } from '@tanstack/router-core'; +import { ResolveRequiredParams } from '@tanstack/router-core'; +import { ResolveRoute } from '@tanstack/router-core'; +import { ResolveRouteContext } from '@tanstack/router-core'; +import { ResolveSearchValidatorInput } from '@tanstack/router-core'; +import { ResolveSearchValidatorInputFn } from '@tanstack/router-core'; +import { ResolveUseLoaderData } from '@tanstack/router-core'; +import { ResolveUseLoaderDeps } from '@tanstack/router-core'; +import { ResolveUseParams } from '@tanstack/router-core'; +import { ResolveUseSearch } from '@tanstack/router-core'; +import { ResolveValidatorInput } from '@tanstack/router-core'; +import { ResolveValidatorInputFn } from '@tanstack/router-core'; +import { ResolveValidatorOutput } from '@tanstack/router-core'; +import { ResolveValidatorOutputFn } from '@tanstack/router-core'; +import { retainSearchParams } from '@tanstack/router-core'; +import { RootRoute as RootRoute_2 } from '@tanstack/router-core'; +import { RootRouteId } from '@tanstack/router-core'; +import { rootRouteId } from '@tanstack/router-core'; +import { RootRouteOptions } from '@tanstack/router-core'; +import { Route as Route_2 } from '@tanstack/router-core'; +import { RouteById } from '@tanstack/router-core'; +import { RouteConstraints } from '@tanstack/router-core'; +import { RouteContext } from '@tanstack/router-core'; +import { RouteContextFn } from '@tanstack/router-core'; +import { RouteContextOptions } from '@tanstack/router-core'; +import { RouteContextParameter } from '@tanstack/router-core'; +import { RouteIds } from '@tanstack/router-core'; +import { RouteLinkEntry } from '@tanstack/router-core'; +import { RouteLoaderEntry } from '@tanstack/router-core'; +import { RouteLoaderFn } from '@tanstack/router-core'; +import { RouteMask } from '@tanstack/router-core'; +import { RouteMatch } from '@tanstack/router-core'; +import { RouteOptions } from '@tanstack/router-core'; +import { RoutePathOptions } from '@tanstack/router-core'; +import { RoutePathOptionsIntersection } from '@tanstack/router-core'; +import { RoutePaths } from '@tanstack/router-core'; +import { RouterConstructorOptions } from '@tanstack/router-core'; +import { RouterContextOptions } from '@tanstack/router-core'; +import { RouterCore } from '@tanstack/router-core'; +import { RouterEvent } from '@tanstack/router-core'; +import { RouterEvents } from '@tanstack/router-core'; +import { RouterHistory } from '@tanstack/history'; +import { RouterListener } from '@tanstack/router-core'; +import { RouterManagedTag } from '@tanstack/router-core'; +import { RouterOptions } from '@tanstack/router-core'; +import { RouterState } from '@tanstack/router-core'; +import { RouteTypesById } from '@tanstack/router-core'; +import { ScrollRestorationEntry } from '@tanstack/router-core'; +import { ScrollRestorationOptions } from '@tanstack/router-core'; +import { SearchFilter } from '@tanstack/router-core'; +import { SearchMiddleware } from '@tanstack/router-core'; +import { SearchParamError } from '@tanstack/router-core'; +import { SearchParamOptions } from '@tanstack/router-core'; +import { SearchParser } from '@tanstack/router-core'; +import { SearchSchemaInput } from '@tanstack/router-core'; +import { SearchSerializer } from '@tanstack/router-core'; +import { Serializable } from '@tanstack/router-core'; +import { SerializableExtensions } from '@tanstack/router-core'; +import { SerializationAdapter } from '@tanstack/router-core'; +import { SerializerExtensions } from '@tanstack/router-core'; +import { StaticDataRouteOption } from '@tanstack/router-core'; +import { StrictOrFrom } from '@tanstack/router-core'; +import { StringifyParamsFn } from '@tanstack/router-core'; +import { stringifySearchWith } from '@tanstack/router-core'; +import { stripSearchParams } from '@tanstack/router-core'; +import { ThrowConstraint } from '@tanstack/router-core'; +import { ThrowOrOptional } from '@tanstack/router-core'; +import { ToMaskOptions } from '@tanstack/router-core'; +import { ToOptions } from '@tanstack/router-core'; +import { ToPathOption } from '@tanstack/router-core'; +import { ToSubOptions } from '@tanstack/router-core'; +import { ToSubOptionsProps } from '@tanstack/router-core'; +import { TrailingSlashOption } from '@tanstack/router-core'; +import { TrimPath } from '@tanstack/router-core'; +import { trimPath } from '@tanstack/router-core'; +import { TrimPathLeft } from '@tanstack/router-core'; +import { trimPathLeft } from '@tanstack/router-core'; +import { TrimPathRight } from '@tanstack/router-core'; +import { trimPathRight } from '@tanstack/router-core'; +import { UpdatableRouteOptions } from '@tanstack/router-core'; +import { UpdatableStaticRouteOption } from '@tanstack/router-core'; +import { UseLoaderDataResult } from '@tanstack/router-core'; +import { UseLoaderDepsResult } from '@tanstack/router-core'; +import { UseNavigateResult } from '@tanstack/router-core'; +import { UseParamsResult } from '@tanstack/router-core'; +import { UseRouteContextBaseOptions } from '@tanstack/router-core'; +import { UseRouteContextOptions } from '@tanstack/router-core'; +import { UseRouteContextResult } from '@tanstack/router-core'; +import { UseSearchResult } from '@tanstack/router-core'; +import { ValidateFromPath } from '@tanstack/router-core'; +import { ValidateId } from '@tanstack/router-core'; +import { ValidateJSON } from '@tanstack/router-core'; +import { ValidateNavigateOptions } from '@tanstack/router-core'; +import { ValidateNavigateOptionsArray } from '@tanstack/router-core'; +import { ValidateParams } from '@tanstack/router-core'; +import { ValidateRedirectOptions } from '@tanstack/router-core'; +import { ValidateRedirectOptionsArray } from '@tanstack/router-core'; +import { ValidateSearch } from '@tanstack/router-core'; +import { ValidateToPath } from '@tanstack/router-core'; +import { ValidateUseParamsResult } from '@tanstack/router-core'; +import { ValidateUseSearchResult } from '@tanstack/router-core'; +import { Validator } from '@tanstack/router-core'; +import { ValidatorAdapter } from '@tanstack/router-core'; +import { ValidatorFn } from '@tanstack/router-core'; +import { ValidatorObj } from '@tanstack/router-core'; + +export { AbsoluteToPath } + +// Warning: (ae-forgotten-export) The symbol "ActiveLinkOptionProps" needs to be exported by the entry point index.rsc.d.ts +// +// @public (undocumented) +export type ActiveLinkOptions = LinkOptions & ActiveLinkOptionProps; + +export { ActiveOptions } + +export { AnyContext } + +export { AnyPathParams } + +export { AnyRedirect } + +// @public (undocumented) +export type AnyRootRoute = RootRoute; + +export { AnyRoute } + +export { AnyRouteMatch } + +export { AnyRouter } + +export { AnyRouterWithContext } + +export { AnyRouteWithContext } + +export { AnySchema } + +export { AnySerializationAdapter } + +export { AnyValidator } + +export { AnyValidatorAdapter } + +export { AnyValidatorFn } + +export { AnyValidatorObj } + +// @public (undocumented) +export function Asset(asset: RouterManagedTag & { + nonce?: string; + preventScriptHoist?: boolean; +}): React_2.ReactElement | null; + +export { Assign } + +// @public (undocumented) +export type AsyncRouteComponent = RouteTypes['component'] & { + preload?: () => Promise | undefined; +}; + +// @public +export function Await(props: AwaitOptions & { + fallback?: React_2.ReactNode; + children: (result: T) => React_2.ReactNode; +}): JSX.Element; + +// @public (undocumented) +export type AwaitOptions = { + promise: Promise; +}; + +export { BaseRouteOptions } + +export { BeforeLoadContextOptions } + +export { BeforeLoadContextParameter } + +// Warning: (ae-forgotten-export) The symbol "PromptProps" needs to be exported by the entry point index.rsc.d.ts +// +// @public (undocumented) +export function Block(opts: PromptProps): React_2.ReactNode; + +// Warning: (ae-forgotten-export) The symbol "LegacyPromptProps" needs to be exported by the entry point index.rsc.d.ts +// +// @public @deprecated (undocumented) +export function Block(opts: LegacyPromptProps): React_2.ReactNode; + +export { BlockerFn } + +export { BuildLocationFn } + +export { BuildNextOptions } + +// @public (undocumented) +export class CatchBoundary extends React_2.Component<{ + getResetKey: () => unknown; + children: React_2.ReactNode; + errorComponent?: ErrorRouteComponent; + onCatch?: (error: unknown, errorInfo: ErrorInfo) => void; +}> { + // (undocumented) + componentDidCatch(error: unknown, errorInfo: ErrorInfo): void; + // (undocumented) + static getDerivedStateFromError(error: unknown): { + error: unknown[]; + }; + // (undocumented) + static getDerivedStateFromProps(props: { + getResetKey: () => unknown; + }, state: { + resetKey?: unknown; + error: [unknown] | 0; + }): { + resetKey: unknown; + error: number; + } | { + resetKey: unknown; + error?: undefined; + }; + // (undocumented) + render(): string | number | bigint | boolean | React_2.ReactElement> | Iterable | Promise> | Iterable | null | undefined> | React_2.FunctionComponentElement | null | undefined; + // (undocumented) + reset: () => void; + // (undocumented) + state: { + error: [unknown] | 0; + resetKey?: unknown; + }; +} + +// @public (undocumented) +export function CatchNotFound(props: { + fallback?: (error: NotFoundError) => React_2.ReactElement; + onCatch?: (error: NotFoundError, errorInfo: ErrorInfo) => void; + children: React_2.ReactNode; +}): JSX.Element; + +export { cleanPath } + +// Warning: (ae-forgotten-export) The symbol "ClientOnlyProps" needs to be exported by the entry point index.rsc.d.ts +// +// @public +export function ClientOnly(input: ClientOnlyProps): JSX.Element; + +export { CommitLocationOptions } + +export { composeRewrites } + +export { Constrain } + +export { ContextAsyncReturnType } + +export { ContextOptions } + +export { ContextReturnType } + +export { ControllablePromise } + +export { ControlledPromise } + +export { createBrowserHistory } + +export { createControlledPromise } + +export { CreateFileRoute } + +// @public +export function createFileRoute(path?: TFilePath): FileRoute['createRoute']; + +export { createHashHistory } + +export { createHistory } + +export { CreateLazyFileRoute } + +// @public +export function createLazyFileRoute(id: TFilePath): (opts: LazyRouteOptions) => LazyRoute; + +// @public +export function createLazyRoute>(id: ConstrainLiteral>): (opts: LazyRouteOptions) => LazyRoute; + +// @public +export function createLink(Comp: Constrain ReactNode>): LinkComponent; + +// @public (undocumented) +export type CreateLinkProps = LinkProps; + +export { createMemoryHistory } + +// @public +export function createRootRoute = {}, TLoaderFn = undefined, TSSR = unknown, const TServerMiddlewares = unknown, THandlers = undefined>(options?: RootRouteOptions): RootRoute; + +// @public +export function createRootRouteWithContext(): = {}, TLoaderFn = undefined, TSSR = unknown, TServerMiddlewares = unknown>(options?: RootRouteOptions) => RootRoute; + +// @public +export function createRoute, TCustomId extends RouteConstraints['TCustomId'] = string, TId extends RouteConstraints['TId'] = ResolveId, TSearchValidator = undefined, TParams = ResolveParams, TRouteContextFn = AnyContext, TBeforeLoadFn = AnyContext, TLoaderDeps extends Record = {}, TLoaderFn = undefined, TChildren = unknown, TSSR = unknown, const TServerMiddlewares = unknown>(options: RouteOptions): Route; + +// @public (undocumented) +export function createRouteMask(opts: { + routeTree: TRouteTree; +} & ToMaskOptions, TFrom, TTo>): RouteMask; + +// @public +export const createRouter: CreateRouterFn; + +export { createRouterConfig } + +export { createSerializationAdapter } + +export { deepEqual } + +export { DEFAULT_PROTOCOL_ALLOWLIST } + +// @public (undocumented) +export function DefaultGlobalNotFound(): JSX.Element; + +export { defaultParseSearch } + +// @public (undocumented) +export interface DefaultRouteTypes { + // (undocumented) + component: ((props: TProps) => any) | default_2.LazyExoticComponent<(props: TProps) => any>; +} + +export { defaultStringifySearch } + +export { DefaultValidator } + +export { defer } + +export { DeferredPromise } + +export { DeferredPromiseState } + +// @public (undocumented) +export function ErrorComponent(input: { + error: unknown; +}): JSX.Element; + +export { ErrorComponentProps } + +// @public (undocumented) +export type ErrorRouteComponent = AsyncRouteComponent; + +export { ErrorRouteProps } + +export { Expand } + +export { FileBaseRouteOptions } + +// @public @deprecated (undocumented) +export class FileRoute { + constructor(path?: TFilePath | undefined, _opts?: { + silent: boolean; + }); + // (undocumented) + createRoute: , TRouteContextFn = AnyContext, TBeforeLoadFn = AnyContext, TLoaderDeps extends Record = {}, TLoaderFn = undefined, TChildren = unknown, TSSR = unknown, const TMiddlewares = unknown, THandlers = undefined>(options?: FileBaseRouteOptions & UpdatableRouteOptions) => Route_2; + // (undocumented) + path?: TFilePath | undefined; + // (undocumented) + silent?: boolean; +} + +// @public @deprecated (undocumented) +export function FileRouteLoader(_path: TFilePath): (loaderFn: Constrain>) => TLoaderFn; + +export { FileRoutesByPath } + +export { FileRouteTypes } + +export { FullSearchSchemaOption } + +export { functionalUpdate } + +// @public +export function getRouteApi(id: ConstrainLiteral>): RouteApi; + +// Warning: (ae-forgotten-export) The symbol "HeadContentProps" needs to be exported by the entry point index.rsc.d.ts +// +// @public +export function HeadContent(props: HeadContentProps): JSX.Element; + +export { HistoryLocation } + +export { HistoryState } + +export { InferAllContext } + +export { InferAllParams } + +export { InferDescendantToPaths } + +export { InferFrom } + +export { InferFullSearchSchema } + +export { InferFullSearchSchemaInput } + +export { InferMaskFrom } + +export { InferMaskTo } + +export { InferSelected } + +export { InferShouldThrow } + +export { InferStrict } + +// @public (undocumented) +export type InferStructuralSharing = TOptions extends { + structuralSharing: infer TStructuralSharing; +} ? TStructuralSharing : unknown; + +export { InferTo } + +export { interpolatePath } + +export { IntersectAssign } + +export { isMatch } + +export { isNotFound } + +export { isRedirect } + +export { joinPaths } + +export { lazyFn } + +// @public (undocumented) +export class LazyRoute { + constructor(opts: { + id: string; + } & LazyRouteOptions); + // (undocumented) + options: { + id: string; + } & LazyRouteOptions; + // Warning: (ae-forgotten-export) The symbol "UseLoaderDataRoute" needs to be exported by the entry point index.rsc.d.ts + // + // (undocumented) + useLoaderData: UseLoaderDataRoute; + // Warning: (ae-forgotten-export) The symbol "UseLoaderDepsRoute" needs to be exported by the entry point index.rsc.d.ts + // + // (undocumented) + useLoaderDeps: UseLoaderDepsRoute; + // Warning: (ae-forgotten-export) The symbol "UseMatchRoute" needs to be exported by the entry point index.rsc.d.ts + // + // (undocumented) + useMatch: UseMatchRoute; + // (undocumented) + useNavigate: () => UseNavigateResult; + // Warning: (ae-forgotten-export) The symbol "UseParamsRoute" needs to be exported by the entry point index.rsc.d.ts + // + // (undocumented) + useParams: UseParamsRoute; + // Warning: (ae-forgotten-export) The symbol "UseRouteContextRoute" needs to be exported by the entry point index.rsc.d.ts + // + // (undocumented) + useRouteContext: UseRouteContextRoute; + // Warning: (ae-forgotten-export) The symbol "UseSearchRoute" needs to be exported by the entry point index.rsc.d.ts + // + // (undocumented) + useSearch: UseSearchRoute; +} + +// @public +export function lazyRouteComponent, TKey extends keyof T = 'default'>(importer: () => Promise, exportName?: TKey): T[TKey] extends (props: infer TProps) => any ? AsyncRouteComponent : never; + +export { LazyRouteOptions } + +// @public +export const Link: LinkComponent<'a'>; + +// @public (undocumented) +export type LinkComponent = (props: LinkComponentProps) => React_2.ReactElement; + +// Warning: (ae-forgotten-export) The symbol "LinkComponentReactProps" needs to be exported by the entry point index.rsc.d.ts +// +// @public (undocumented) +export type LinkComponentProps = LinkComponentReactProps & LinkProps; + +export { LinkOptions } + +// Warning: (ae-forgotten-export) The symbol "LinkOptionsFn" needs to be exported by the entry point index.rsc.d.ts +// +// @public +export const linkOptions: LinkOptionsFn<'a'>; + +// Warning: (ae-forgotten-export) The symbol "LinkPropsChildren" needs to be exported by the entry point index.rsc.d.ts +// +// @public (undocumented) +export type LinkProps = ActiveLinkOptions & LinkPropsChildren; + +export { ListenerFn } + +export { LoaderFnContext } + +export { LocationRewrite } + +export { LocationRewriteFunction } + +export { LooseAsyncReturnType } + +export { LooseReturnType } + +// @public (undocumented) +export type MakeMatchRouteOptions = UseMatchRouteOptions & { + children?: ((params?: Expand['types']['allParams']>) => React_2.ReactNode) | React_2.ReactNode; +}; + +export { MakeOptionalPathParams } + +export { MakeRemountDepsOptionsUnion } + +export { MakeRouteMatch } + +export { MakeRouteMatchUnion } + +export { Manifest } + +// @public (undocumented) +export const Match: React_2.MemoExoticComponent<(input: { + routeId: string; +}) => JSX.Element>; + +// @public +export function Matches(): JSX.Element; + +export { MatchLocation } + +// @public +export function MatchRoute(props: MakeMatchRouteOptions): any; + +export { MatchRouteOptions } + +export { MergeAll } + +export { MetaDescriptor } + +// @public +export function Navigate(props: NavigateOptions): null; + +export { NavigateFn } + +export { NavigateOptions } + +export { notFound } + +export { NotFoundError } + +// @public (undocumented) +export class NotFoundRoute = {}, TLoaderFn = undefined, TChildren = unknown, TSSR = unknown, TServerMiddlewares = unknown> extends Route { + constructor(options: Omit, 'caseSensitive' | 'parseParams' | 'stringifyParams' | 'path' | 'id' | 'params'>); +} + +// @public (undocumented) +export type NotFoundRouteComponent = RouteTypes['component']; + +export { NotFoundRouteProps } + +// @public +export const Outlet: React_2.MemoExoticComponent<() => JSX.Element | null>; + +export { ParamsOptions } + +export { ParsedLocation } + +export { ParsedPath } + +export { ParseParamsFn } + +export { parseSearchWith } + +export { PathParamOptions } + +export { PreloadableObj } + +// @public +export const reactUse: ((usable: Promise | React_2.Context) => T) | undefined; + +export { Redirect } + +export { redirect } + +export { RedirectOptions } + +export { Register } + +export { RegisteredRouter } + +export { RegisteredSerializableInput } + +export { RelativeToCurrentPath } + +export { RelativeToParentPath } + +export { RelativeToPath } + +export { RelativeToPathAutoComplete } + +export { RemountDepsOptions } + +export { RemoveLeadingSlashes } + +export { RemoveTrailingSlashes } + +export { replaceEqualDeep } + +export { ResolveAllContext } + +export { ResolveAllParamsFromParent } + +export { ResolvedRedirect } + +export { ResolveFullPath } + +export { ResolveFullSearchSchema } + +export { ResolveFullSearchSchemaInput } + +export { ResolveId } + +export { ResolveLoaderData } + +export { ResolveOptionalParams } + +export { ResolveParams } + +export { resolvePath } + +export { ResolveRelativePath } + +export { ResolveRequiredParams } + +export { ResolveRoute } + +export { ResolveRouteContext } + +export { ResolveSearchValidatorInput } + +export { ResolveSearchValidatorInputFn } + +export { ResolveValidatorInput } + +export { ResolveValidatorInputFn } + +export { ResolveValidatorOutput } + +export { ResolveValidatorOutputFn } + +export { retainSearchParams } + +// @public (undocumented) +export class RootRoute = {}, in out TLoaderFn = undefined, in out TChildren = unknown, in out TFileRouteTypes = unknown, in out TSSR = unknown, in out TServerMiddlewares = unknown, in out THandlers = undefined> extends BaseRootRoute implements RootRoute_2 { + // @deprecated + constructor(options?: RootRouteOptions); + // Warning: (ae-forgotten-export) The symbol "LinkComponentRoute" needs to be exported by the entry point index.rsc.d.ts + // + // (undocumented) + Link: LinkComponentRoute<'/'>; + // (undocumented) + useLoaderData: UseLoaderDataRoute; + // (undocumented) + useLoaderDeps: UseLoaderDepsRoute; + // (undocumented) + useMatch: UseMatchRoute; + // (undocumented) + useNavigate: () => UseNavigateResult<"/">; + // (undocumented) + useParams: UseParamsRoute; + // (undocumented) + useRouteContext: UseRouteContextRoute; + // (undocumented) + useSearch: UseSearchRoute; +} + +export { RootRouteId } + +export { rootRouteId } + +export { RootRouteOptions } + +// @public @deprecated (undocumented) +export const rootRouteWithContext: typeof createRootRouteWithContext; + +// @public (undocumented) +export class Route, in out TCustomId extends RouteConstraints['TCustomId'] = string, in out TId extends RouteConstraints['TId'] = ResolveId, in out TSearchValidator = undefined, in out TParams = ResolveParams, in out TRouterContext = AnyContext, in out TRouteContextFn = AnyContext, in out TBeforeLoadFn = AnyContext, in out TLoaderDeps extends Record = {}, in out TLoaderFn = undefined, in out TChildren = unknown, in out TFileRouteTypes = unknown, in out TSSR = unknown, in out TServerMiddlewares = unknown, in out THandlers = undefined> extends BaseRoute implements Route_2 { + // @deprecated + constructor(options?: RouteOptions); + // (undocumented) + Link: LinkComponentRoute; + // (undocumented) + useLoaderData: UseLoaderDataRoute; + // (undocumented) + useLoaderDeps: UseLoaderDepsRoute; + // (undocumented) + useMatch: UseMatchRoute; + // (undocumented) + useNavigate: () => UseNavigateResult; + // (undocumented) + useParams: UseParamsRoute; + // (undocumented) + useRouteContext: UseRouteContextRoute; + // (undocumented) + useSearch: UseSearchRoute; +} + +// @public (undocumented) +export class RouteApi extends BaseRouteApi { + // @deprecated + constructor(input: { + id: TId; + }); + // (undocumented) + Link: LinkComponentRoute['fullPath']>; + // (undocumented) + notFound: (opts?: NotFoundError) => NotFoundError; + // (undocumented) + useLoaderData: UseLoaderDataRoute; + // (undocumented) + useLoaderDeps: UseLoaderDepsRoute; + // (undocumented) + useMatch: UseMatchRoute; + // (undocumented) + useNavigate: () => UseNavigateResult["fullPath"]>; + // (undocumented) + useParams: UseParamsRoute; + // (undocumented) + useRouteContext: UseRouteContextRoute; + // (undocumented) + useSearch: UseSearchRoute; +} + +export { RouteById } + +// @public (undocumented) +export type RouteComponent = AsyncRouteComponent<{}>; + +export { RouteConstraints } + +export { RouteContext } + +export { RouteContextFn } + +export { RouteContextOptions } + +export { RouteContextParameter } + +export { RouteIds } + +export { RouteLinkEntry } + +export { RouteLoaderFn } + +export { RouteMask } + +export { RouteMatch } + +export { RouteOptions } + +export { RoutePathOptions } + +export { RoutePathOptionsIntersection } + +// @public (undocumented) +export class Router = Record> extends RouterCore { + constructor(options: RouterConstructorOptions); +} + +export { RouterConstructorOptions } + +export { RouterContextOptions } + +// @public +export function RouterContextProvider = Record>(input: RouterProps & { + children: React_2.ReactNode; +}): JSX.Element; + +export { RouterEvent } + +export { RouterEvents } + +export { RouterHistory } + +export { RouterListener } + +export { RouterManagedTag } + +export { RouterOptions } + +// @public (undocumented) +export type RouterProps = Record> = Omit, NonNullable, TRouter['history'], TDehydrated>, 'context' | 'pathParamsAllowedCharacters'> & { + router: TRouter; + context?: Partial, NonNullable, TRouter['history'], TDehydrated>['context']>; +}; + +// @public +export function RouterProvider = Record>(input: RouterProps): JSX.Element; + +export { RouterState } + +// @public (undocumented) +export interface RouteTypes extends DefaultRouteTypes { +} + +// @public +export function ScriptOnce(input: { + children: string; +}): JSX.Element | null; + +// @public +export const Scripts: () => JSX.Element; + +// @public @deprecated (undocumented) +function ScrollRestoration_2(_props: ScrollRestorationOptions): null; +export { ScrollRestoration_2 as ScrollRestoration } + +export { SearchFilter } + +export { SearchMiddleware } + +export { SearchParamError } + +export { SearchParamOptions } + +export { SearchParser } + +export { SearchSchemaInput } + +export { SearchSerializer } + +export { Serializable } + +export { SerializableExtensions } + +export { SerializationAdapter } + +export { SerializerExtensions } + +// Warning: (ae-forgotten-export) The symbol "ShouldBlockFnArgs" needs to be exported by the entry point index.rsc.d.ts +// +// @public (undocumented) +export type ShouldBlockFn = (args: ShouldBlockFnArgs) => boolean | Promise; + +export { StaticDataRouteOption } + +export { StringifyParamsFn } + +export { stringifySearchWith } + +export { stripSearchParams } + +export { ToMaskOptions } + +export { ToOptions } + +export { ToPathOption } + +export { ToSubOptions } + +export { TrailingSlashOption } + +export { TrimPath } + +export { trimPath } + +export { TrimPathLeft } + +export { trimPathLeft } + +export { TrimPathRight } + +export { trimPathRight } + +export { UpdatableRouteOptions } + +export { UpdatableStaticRouteOption } + +// @public +export function useAwaited(input: AwaitOptions): T; + +// Warning: (ae-forgotten-export) The symbol "BlockerResolver" needs to be exported by the entry point index.rsc.d.ts +// +// @public (undocumented) +export function useBlocker(opts: UseBlockerOpts): TWithResolver extends true ? BlockerResolver : void; + +// Warning: (ae-forgotten-export) The symbol "LegacyBlockerOpts" needs to be exported by the entry point index.rsc.d.ts +// +// @public @deprecated (undocumented) +export function useBlocker(blockerFnOrOpts?: LegacyBlockerOpts): BlockerResolver; + +// Warning: (ae-forgotten-export) The symbol "LegacyBlockerFn" needs to be exported by the entry point index.rsc.d.ts +// +// @public @deprecated (undocumented) +export function useBlocker(blockerFn?: LegacyBlockerFn, condition?: boolean | any): BlockerResolver; + +// @public (undocumented) +export type UseBlockerOpts = { + shouldBlockFn: ShouldBlockFn; + enableBeforeUnload?: boolean | (() => boolean); + disabled?: boolean; + withResolver?: TWithResolver; +}; + +// @public (undocumented) +export function useCanGoBack(): boolean; + +// Warning: (ae-forgotten-export) The symbol "UseMatchesBaseOptions" needs to be exported by the entry point index.rsc.d.ts +// Warning: (ae-forgotten-export) The symbol "StructuralSharingOption" needs to be exported by the entry point index.rsc.d.ts +// Warning: (ae-forgotten-export) The symbol "UseMatchesResult" needs to be exported by the entry point index.rsc.d.ts +// +// @public +export function useChildMatches(opts?: UseMatchesBaseOptions & StructuralSharingOption): UseMatchesResult; + +// @public (undocumented) +export function useElementScrollRestoration(options: ({ + id: string; + getElement?: () => Window | Element | undefined | null; +} | { + id?: string; + getElement: () => Window | Element | undefined | null; +}) & { + getKey?: (location: ParsedLocation) => string; +}): ScrollRestorationEntry | undefined; + +// @public +export function useHydrated(): boolean; + +// @public (undocumented) +export const useLayoutEffect: typeof React_2.useEffect; + +// @public +export function useLinkProps(options: UseLinkPropsOptions, forwardedRef?: React_2.ForwardedRef): React_2.ComponentPropsWithRef<'a'>; + +// Warning: (ae-forgotten-export) The symbol "UseLinkReactProps" needs to be exported by the entry point index.rsc.d.ts +// +// @public (undocumented) +export type UseLinkPropsOptions | string = string, TTo extends string | undefined = '.', TMaskFrom extends RoutePaths | string = TFrom, TMaskTo extends string = '.'> = ActiveLinkOptions<'a', TRouter, TFrom, TTo, TMaskFrom, TMaskTo> & UseLinkReactProps<'a'>; + +// Warning: (ae-forgotten-export) The symbol "UseLoaderDataOptions" needs to be exported by the entry point index.rsc.d.ts +// +// @public +export function useLoaderData(opts: UseLoaderDataOptions): UseLoaderDataResult; + +// Warning: (ae-forgotten-export) The symbol "UseLoaderDepsOptions" needs to be exported by the entry point index.rsc.d.ts +// +// @public +export function useLoaderDeps(opts: UseLoaderDepsOptions): UseLoaderDepsResult; + +// Warning: (ae-forgotten-export) The symbol "UseLocationBaseOptions" needs to be exported by the entry point index.rsc.d.ts +// Warning: (ae-forgotten-export) The symbol "UseLocationResult" needs to be exported by the entry point index.rsc.d.ts +// +// @public +export function useLocation(opts?: UseLocationBaseOptions & StructuralSharingOption): UseLocationResult; + +// Warning: (ae-forgotten-export) The symbol "UseMatchOptions" needs to be exported by the entry point index.rsc.d.ts +// Warning: (ae-forgotten-export) The symbol "UseMatchResult" needs to be exported by the entry point index.rsc.d.ts +// +// @public +export function useMatch(opts: UseMatchOptions, TSelected, TStructuralSharing>): ThrowOrOptional, TThrow>; + +// @public (undocumented) +export function useMatches(opts?: UseMatchesBaseOptions & StructuralSharingOption): UseMatchesResult; + +// @public +export function useMatchRoute(): (opts: UseMatchRouteOptions) => false | Expand['types']['allParams']>; + +// @public (undocumented) +export type UseMatchRouteOptions = ToSubOptionsProps & DeepPartial> & DeepPartial> & MaskOptions & MatchRouteOptions; + +// @public +export function useNavigate(_defaultOpts?: { + from?: FromPathOption; +}): UseNavigateResult; + +export { UseNavigateResult } + +// Warning: (ae-forgotten-export) The symbol "UseParamsOptions" needs to be exported by the entry point index.rsc.d.ts +// +// @public +export function useParams(opts: UseParamsOptions, TSelected, TStructuralSharing>): ThrowOrOptional, TThrow>; + +// @public +export function useParentMatches(opts?: UseMatchesBaseOptions & StructuralSharingOption): UseMatchesResult; + +// @public (undocumented) +export function useRouteContext(opts: UseRouteContextOptions): UseRouteContextResult; + +// @public +export function useRouter(opts?: { + warn?: boolean; +}): TRouter; + +// Warning: (ae-forgotten-export) The symbol "UseRouterStateOptions" needs to be exported by the entry point index.rsc.d.ts +// Warning: (ae-forgotten-export) The symbol "UseRouterStateResult" needs to be exported by the entry point index.rsc.d.ts +// +// @public +export function useRouterState(opts?: UseRouterStateOptions): UseRouterStateResult; + +// Warning: (ae-forgotten-export) The symbol "UseSearchOptions" needs to be exported by the entry point index.rsc.d.ts +// +// @public +export function useSearch(opts: UseSearchOptions, TSelected, TStructuralSharing>): ThrowOrOptional, TThrow>; + +// @public +export const useTags: (assetCrossOrigin?: AssetCrossOriginConfig) => RouterManagedTag[]; + +export { ValidateFromPath } + +export { ValidateId } + +// @public (undocumented) +export type ValidateLinkOptions = Constrain, InferTo, InferMaskFrom, InferMaskTo>>; + +// @public (undocumented) +export type ValidateLinkOptionsArray = ReadonlyArray, TDefaultFrom extends string = string, TComp = 'a'> = { + [K in keyof TOptions]: ValidateLinkOptions; +}; + +export { ValidateNavigateOptions } + +export { ValidateNavigateOptionsArray } + +export { ValidateParams } + +export { ValidateRedirectOptions } + +export { ValidateRedirectOptionsArray } + +export { ValidateSearch } + +export { ValidateToPath } + +// @public (undocumented) +export type ValidateUseParamsOptions = Constrain, InferStrict, InferShouldThrow, InferSelected, InferSelected>>; + +export { ValidateUseParamsResult } + +// @public (undocumented) +export type ValidateUseSearchOptions = Constrain, InferStrict, InferShouldThrow, InferSelected, InferStructuralSharing>>; + +export { ValidateUseSearchResult } + +export { Validator } + +export { ValidatorAdapter } + +export { ValidatorFn } + +export { ValidatorObj } + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/react-router/api/ssr/client.api.md b/packages/react-router/api/ssr/client.api.md new file mode 100644 index 0000000000..5133e90308 --- /dev/null +++ b/packages/react-router/api/ssr/client.api.md @@ -0,0 +1,26 @@ +## API Report File for "@tanstack/react-router" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/ssr/client.d.ts`. Regenerate with `node scripts/api-report.mjs packages/react-router` after a build. +> +> Imported as: +> +> - `@tanstack/react-router/ssr/client` (`import`) + +```ts + +import { AnyRouter } from '@tanstack/router-core'; +import { JSX } from 'react/jsx-runtime'; + +// @public (undocumented) +export function RouterClient(props: { + router: AnyRouter; +}): JSX.Element; + + +export * from "@tanstack/router-core/ssr/client"; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/react-router/api/ssr/server.api.md b/packages/react-router/api/ssr/server.api.md new file mode 100644 index 0000000000..1f8085ceb6 --- /dev/null +++ b/packages/react-router/api/ssr/server.api.md @@ -0,0 +1,53 @@ +## API Report File for "@tanstack/react-router" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/ssr/server.d.ts`. Regenerate with `node scripts/api-report.mjs packages/react-router` after a build. +> +> Imported as: +> +> - `@tanstack/react-router/ssr/server` (`import`) + +```ts + +import { AnyRouter } from '@tanstack/router-core'; +import { HandlerCallback } from '@tanstack/router-core/ssr/server'; +import { JSX } from 'react/jsx-runtime'; +import { ReactNode } from 'react'; + +// @public (undocumented) +export const defaultRenderHandler: HandlerCallback; + +// @public (undocumented) +export const defaultStreamHandler: HandlerCallback; + +// @public (undocumented) +export const renderRouterToStream: (input: { + request: Request; + router: AnyRouter; + responseHeaders: Headers; + children: ReactNode; +}) => Promise<{ + response: Response; + serverSsrCleanup: "stream"; + dispose: (reason?: unknown) => undefined; +}>; + +// @public (undocumented) +export const renderRouterToString: (input: { + router: AnyRouter; + responseHeaders: Headers; + children: ReactNode; +}) => Promise; + +// @public (undocumented) +export function RouterServer(props: { + router: TRouter; +}): JSX.Element; + + +export * from "@tanstack/router-core/ssr/server"; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/react-start-client/api/Hydrate.api.md b/packages/react-start-client/api/Hydrate.api.md new file mode 100644 index 0000000000..ab0bb5cd4d --- /dev/null +++ b/packages/react-start-client/api/Hydrate.api.md @@ -0,0 +1,78 @@ +## API Report File for "@tanstack/react-start-client" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/Hydrate.d.ts`. Regenerate with `node scripts/api-report.mjs packages/react-start-client` after a build. +> +> Imported as: +> +> - `@tanstack/react-start-client/Hydrate` (`import`) + +```ts + +import { HydrationInteractionEvent } from '@tanstack/start-client-core/hydration'; +import { HydrationInteractionEvents } from '@tanstack/start-client-core/hydration'; +import { HydrationPrefetchContext } from '@tanstack/start-client-core/hydration'; +import { HydrationPrefetchFunction } from '@tanstack/start-client-core/hydration'; +import { HydrationPrefetchStrategy } from '@tanstack/start-client-core/hydration'; +import { HydrationPrefetchWaitReason } from '@tanstack/start-client-core/hydration'; +import { HydrationStrategy as HydrationStrategy_2 } from '@tanstack/start-client-core/hydration'; +import { HydrationWhen } from '@tanstack/start-client-core/hydration'; +import * as React_2 from 'react'; + +// @public (undocumented) +export function Hydrate(props: HydrateProps): React_2.JSX.Element; + +// Warning: (ae-forgotten-export) The symbol "HydrateCommonOptions" needs to be exported by the entry point Hydrate.d.ts +// +// @public (undocumented) +export type HydrateOptions = (HydrateCommonOptions & { + prefetch?: never; + split?: boolean; +}) | (HydrateCommonOptions & { + prefetch: HydrationPrefetchStrategy; + split?: true; +}) | (HydrateCommonOptions & { + prefetch: HydrationPrefetchFunction; + split?: boolean; +}); + +// @public (undocumented) +export type HydrateProps = HydrateOptions & { + children: React_2.ReactNode; +}; + +// @public (undocumented) +export type HydrateWhen = ReactHydrationStrategy | (() => ReactHydrationStrategy); + +export { HydrationInteractionEvent } + +export { HydrationInteractionEvents } + +export { HydrationPrefetchContext } + +export { HydrationPrefetchFunction } + +export { HydrationPrefetchStrategy } + +export { HydrationPrefetchWaitReason } + +// @public (undocumented) +export type HydrationStrategy = ReactHydrationStrategy; + +export { HydrationWhen } + +// @public (undocumented) +export type InternalHydrateProps = HydrateProps & { + h?: string; + p?: () => Promise; +}; + +// @public (undocumented) +export type ReactHydrationStrategy = HydrationStrategy_2 & { + _h: (this: ReactHydrationStrategy, props: HydrateProps) => React_2.JSX.Element; +}; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/react-start-client/api/hydration.api.md b/packages/react-start-client/api/hydration.api.md new file mode 100644 index 0000000000..8a4757baf2 --- /dev/null +++ b/packages/react-start-client/api/hydration.api.md @@ -0,0 +1,89 @@ +## API Report File for "@tanstack/react-start-client" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/hydration.d.ts`. Regenerate with `node scripts/api-report.mjs packages/react-start-client` after a build. +> +> Imported as: +> +> - `@tanstack/react-start-client/hydration` (`import`) + +```ts + +import { HydrationCondition } from '@tanstack/start-client-core/hydration'; +import { HydrationInteractionEvent } from '@tanstack/start-client-core/hydration'; +import { HydrationInteractionEvents } from '@tanstack/start-client-core/hydration'; +import { HydrationPrefetchContext } from '@tanstack/start-client-core/hydration'; +import { HydrationPrefetchFunction } from '@tanstack/start-client-core/hydration'; +import { HydrationPrefetchStrategy } from '@tanstack/start-client-core/hydration'; +import { HydrationPrefetchWaitReason } from '@tanstack/start-client-core/hydration'; +import { HydrationPrefetchWhen } from '@tanstack/start-client-core/hydration'; +import { HydrationStrategy as HydrationStrategy_2 } from '@tanstack/start-client-core/hydration'; +import { HydrationStrategyTypes } from '@tanstack/start-client-core/hydration'; +import { HydrationWhen } from '@tanstack/start-client-core/hydration'; +import { IdleHydrationOptions } from '@tanstack/start-client-core/hydration'; +import * as React_2 from 'react'; +import { VisibleHydrationOptions } from '@tanstack/start-client-core/hydration'; + +// @public (undocumented) +export function condition(condition: HydrationCondition): ReactHydrationStrategy<'condition', false>; + +export { HydrationCondition } + +export { HydrationInteractionEvent } + +export { HydrationInteractionEvents } + +export { HydrationPrefetchContext } + +export { HydrationPrefetchFunction } + +export { HydrationPrefetchStrategy } + +export { HydrationPrefetchWaitReason } + +export { HydrationPrefetchWhen } + +// @public (undocumented) +export type HydrationStrategy = ReactHydrationStrategy; + +export { HydrationStrategyTypes } + +export { HydrationWhen } + +// @public (undocumented) +export function idle(options?: IdleHydrationOptions): ReactHydrationStrategy<'idle', true> & HydrationPrefetchStrategy<'idle'>; + +export { IdleHydrationOptions } + +// @public (undocumented) +export function interaction(options?: { + events?: HydrationInteractionEvents; +}): ReactHydrationStrategy<'interaction', true> & HydrationPrefetchStrategy<'interaction'>; + +// @public (undocumented) +export function load(): ReactHydrationStrategy<'load', true> & HydrationPrefetchStrategy<'load'>; + +// @public (undocumented) +export function media(query: string): ReactHydrationStrategy<'media', true> & HydrationPrefetchStrategy<'media'>; + +// @public (undocumented) +export function never(): ReactHydrationStrategy<'never', false>; + +// @public (undocumented) +export type ReactHydrationStrategy = HydrationStrategy_2 & { + _h: (this: ReactHydrationStrategy, props: HydrateProps) => React_2.JSX.Element; +}; + +// @public (undocumented) +export function visible(options?: VisibleHydrationOptions): ReactHydrationStrategy<'visible', true> & HydrationPrefetchStrategy<'visible'>; + +export { VisibleHydrationOptions } + +// Warnings were encountered during analysis: +// +// dist/esm/Hydrate.d.ts:5:5 - (ae-forgotten-export) The symbol "HydrateProps" needs to be exported by the entry point hydration.d.ts + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/react-start-client/api/index.api.md b/packages/react-start-client/api/index.api.md new file mode 100644 index 0000000000..3701f53764 --- /dev/null +++ b/packages/react-start-client/api/index.api.md @@ -0,0 +1,24 @@ +## API Report File for "@tanstack/react-start-client" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/index.d.ts`. Regenerate with `node scripts/api-report.mjs packages/react-start-client` after a build. +> +> Imported as: +> +> - `@tanstack/react-start-client` (`import`) + +```ts + +import { AnyRouter } from '@tanstack/router-core'; +import { JSX } from 'react/jsx-runtime'; + +// @public +export function hydrateStart(): Promise; + +// @public (undocumented) +export function StartClient(): JSX.Element; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/react-start-rsc/api/index.api.md b/packages/react-start-rsc/api/index.api.md new file mode 100644 index 0000000000..aead387289 --- /dev/null +++ b/packages/react-start-rsc/api/index.api.md @@ -0,0 +1,82 @@ +## API Report File for "@tanstack/react-start-rsc" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/index.d.ts`. Regenerate with `node scripts/api-report.mjs packages/react-start-rsc` after a build. +> +> Imported as: +> +> - `@tanstack/react-start-rsc` (`import`) + +```ts + +import { ComponentProps } from 'react'; +import { ComponentType } from 'react'; +import { Constrain } from '@tanstack/router-core'; +import { IsomorphicFn } from '@tanstack/start-fn-stubs'; +import { LooseAsyncReturnType } from '@tanstack/router-core'; +import { LooseReturnType } from '@tanstack/router-core'; +import { ReactNode } from 'react'; +import { ValidateSerializable } from '@tanstack/router-core'; + +// Warning: (ae-forgotten-export) The symbol "CompositeComponent_2" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type AnyCompositeComponent = CompositeComponent_2; + +// @public (undocumented) +export type AnyRenderableServerComponent = RenderableServerComponentAttributes; + +// Warning: (ae-forgotten-export) The symbol "CompositeComponentProps_2" needs to be exported by the entry point index.d.ts +// +// @public +export function CompositeComponent(props: CompositeComponentProps_2): TComp['~types']['return']; + +// Warning: (ae-forgotten-export) The symbol "ValidateCompositeComponent" needs to be exported by the entry point index.d.ts +// Warning: (ae-forgotten-export) The symbol "CompositeComponentResult" needs to be exported by the entry point index.d.ts +// +// @public +export function createCompositeComponent(_component: ValidateCompositeComponent): Promise>; + +// @public +export const createFromFetch: (fetchPromise: Promise) => Promise; + +// @public +export const createFromReadableStream: IsomorphicFn<[stream: ReadableStream>], Promise, Promise>; + +// @public (undocumented) +export type RenderableServerComponent = TNode & RenderableServerComponentAttributes; + +// @public (undocumented) +export interface RenderableServerComponentAttributes { + // (undocumented) + '~types': { + node: TNode; + }; + // (undocumented) + [RENDERABLE_RSC]: true; + // Warning: (ae-forgotten-export) The symbol "ServerComponentStream" needs to be exported by the entry point index.d.ts + // + // (undocumented) + [SERVER_COMPONENT_STREAM]: ServerComponentStream; +} + +// @public (undocumented) +export type RenderableServerComponentBuilder = T extends React.ReactNode ? RenderableServerComponent : { + [TKey in keyof T]: RenderableServerComponentBuilder; +}; + +// Warning: (ae-forgotten-export) The symbol "ValidateRenderableServerComponent" needs to be exported by the entry point index.d.ts +// +// @public +export function renderServerComponent(_node: ValidateRenderableServerComponent): Promise>; + +// @public +export function renderToReadableStream(_node: React.ReactNode): ReadableStream; + +// @public (undocumented) +export const SERVER_COMPONENT_CSS_HREFS: unique symbol; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/react-start-rsc/api/index.rsc.api.md b/packages/react-start-rsc/api/index.rsc.api.md new file mode 100644 index 0000000000..f1b69b3109 --- /dev/null +++ b/packages/react-start-rsc/api/index.rsc.api.md @@ -0,0 +1,81 @@ +## API Report File for "@tanstack/react-start-rsc" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/index.rsc.d.ts`. Regenerate with `node scripts/api-report.mjs packages/react-start-rsc` after a build. +> +> Imported as: +> +> - `@tanstack/react-start-rsc` (`react-server`) + +```ts + +import { ComponentProps } from 'react'; +import { ComponentType } from 'react'; +import { Constrain } from '@tanstack/router-core'; +import { default as default_2 } from 'react'; +import { IsomorphicFn } from '@tanstack/start-fn-stubs'; +import { LooseAsyncReturnType } from '@tanstack/router-core'; +import { LooseReturnType } from '@tanstack/router-core'; +import { ReactNode } from 'react'; +import { renderToReadableStream } from 'virtual:tanstack-rsc-runtime'; +import { ValidateSerializable } from '@tanstack/router-core'; + +// Warning: (ae-forgotten-export) The symbol "CompositeComponent_2" needs to be exported by the entry point index.rsc.d.ts +// +// @public (undocumented) +export type AnyCompositeComponent = CompositeComponent_2; + +// @public (undocumented) +export type AnyRenderableServerComponent = RenderableServerComponentAttributes; + +// Warning: (ae-forgotten-export) The symbol "CompositeComponentProps_2" needs to be exported by the entry point index.rsc.d.ts +// +// @public +export function CompositeComponent(props: CompositeComponentProps_2): TComp['~types']['return']; + +// Warning: (ae-forgotten-export) The symbol "ValidateCompositeComponent" needs to be exported by the entry point index.rsc.d.ts +// Warning: (ae-forgotten-export) The symbol "RscCssEnvelopeOptions" needs to be exported by the entry point index.rsc.d.ts +// Warning: (ae-forgotten-export) The symbol "CompositeComponentResult" needs to be exported by the entry point index.rsc.d.ts +// +// @public +export function createCompositeComponent(component: ValidateCompositeComponent, options?: RscCssEnvelopeOptions): Promise>; + +// @public +export const createFromFetch: (fetchPromise: Promise) => Promise; + +// @public +export const createFromReadableStream: IsomorphicFn<[stream: ReadableStream>], Promise, Promise>; + +// @public (undocumented) +export type RenderableServerComponent = TNode & RenderableServerComponentAttributes; + +// @public (undocumented) +export interface RenderableServerComponentAttributes { + // (undocumented) + '~types': { + node: TNode; + }; + // (undocumented) + [RENDERABLE_RSC]: true; + // Warning: (ae-forgotten-export) The symbol "ServerComponentStream" needs to be exported by the entry point index.rsc.d.ts + // + // (undocumented) + [SERVER_COMPONENT_STREAM]: ServerComponentStream; +} + +// @public (undocumented) +export type RenderableServerComponentBuilder = T extends React.ReactNode ? RenderableServerComponent : { + [TKey in keyof T]: RenderableServerComponentBuilder; +}; + +// Warning: (ae-forgotten-export) The symbol "ValidateRenderableServerComponent" needs to be exported by the entry point index.rsc.d.ts +// +// @public +export function renderServerComponent(node: ValidateRenderableServerComponent, options?: RscCssEnvelopeOptions): Promise>; + +export { renderToReadableStream } + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/react-start-rsc/api/plugin/rscCssTransform.api.md b/packages/react-start-rsc/api/plugin/rscCssTransform.api.md new file mode 100644 index 0000000000..97f9029df5 --- /dev/null +++ b/packages/react-start-rsc/api/plugin/rscCssTransform.api.md @@ -0,0 +1,23 @@ +## API Report File for "@tanstack/react-start-rsc" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/plugin/rscCssTransform.d.ts`. Regenerate with `node scripts/api-report.mjs packages/react-start-rsc` after a build. +> +> Imported as: +> +> - `@tanstack/react-start-rsc/plugin/rscCssTransform` (`import`) + +```ts + +import { StartCompilerImportTransform } from '@tanstack/start-plugin-core'; + +// @public (undocumented) +export function createRscCssCompilerTransforms(opts: { + loadCssExpression: string; + serverFnProviderOnly?: boolean | undefined; +}): Array; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/react-start-rsc/api/plugin/vite.api.md b/packages/react-start-rsc/api/plugin/vite.api.md new file mode 100644 index 0000000000..91b385f704 --- /dev/null +++ b/packages/react-start-rsc/api/plugin/vite.api.md @@ -0,0 +1,30 @@ +## API Report File for "@tanstack/react-start-rsc" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/plugin/vite.d.ts`. Regenerate with `node scripts/api-report.mjs packages/react-start-rsc` after a build. +> +> Imported as: +> +> - `@tanstack/react-start-rsc/plugin/vite` (`import`) + +```ts + +import { PluginOption } from 'vite'; +import { TanStackStartVitePluginCoreOptions } from '@tanstack/start-plugin-core/vite'; + +// @public (undocumented) +export function configureRsc(): { + envName: string; + providerEnvironmentName: TanStackStartVitePluginCoreOptions['providerEnvironmentName']; + ssrResolverStrategy: TanStackStartVitePluginCoreOptions['ssrResolverStrategy']; + serializationAdapters: TanStackStartVitePluginCoreOptions['serializationAdapters']; + compilerTransforms: TanStackStartVitePluginCoreOptions['compilerTransforms']; +}; + +// @public (undocumented) +export function reactStartRscVitePlugin(): PluginOption; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/react-start-rsc/api/rsbuild/browser-decode.api.md b/packages/react-start-rsc/api/rsbuild/browser-decode.api.md new file mode 100644 index 0000000000..df4db4f868 --- /dev/null +++ b/packages/react-start-rsc/api/rsbuild/browser-decode.api.md @@ -0,0 +1,21 @@ +## API Report File for "@tanstack/react-start-rsc" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/rsbuild/browser-decode.d.ts`. Regenerate with `node scripts/api-report.mjs packages/react-start-rsc` after a build. +> +> Imported as: +> +> - `@tanstack/react-start-rsc/rsbuild/browser-decode` (`import`) + +```ts + +// @public (undocumented) +export const createFromFetch: (fetchPromise: Promise, options?: object) => Promise; + +// @public +export const createFromReadableStream: (stream: ReadableStream, options?: object) => Promise; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/react-start-rsc/api/rsbuild/ssr-decode.api.md b/packages/react-start-rsc/api/rsbuild/ssr-decode.api.md new file mode 100644 index 0000000000..7822a81f0d --- /dev/null +++ b/packages/react-start-rsc/api/rsbuild/ssr-decode.api.md @@ -0,0 +1,23 @@ +## API Report File for "@tanstack/react-start-rsc" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/rsbuild/ssr-decode.d.ts`. Regenerate with `node scripts/api-report.mjs packages/react-start-rsc` after a build. +> +> Imported as: +> +> - `@tanstack/react-start-rsc/rsbuild/ssr-decode` (`import`) + +```ts + +// @public (undocumented) +export function createFromReadableStream(stream: ReadableStream, options?: object): Promise; + +// Warning: (ae-forgotten-export) The symbol "OnClientReference" needs to be exported by the entry point ssr-decode.d.ts +// +// @public (undocumented) +export function setOnClientReference(callback: OnClientReference | undefined): void; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/react-start-rsc/api/serialization.client.api.md b/packages/react-start-rsc/api/serialization.client.api.md new file mode 100644 index 0000000000..464dbd5ec9 --- /dev/null +++ b/packages/react-start-rsc/api/serialization.client.api.md @@ -0,0 +1,23 @@ +## API Report File for "@tanstack/react-start-rsc" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/serialization.client.d.ts`. Regenerate with `node scripts/api-report.mjs packages/react-start-rsc` after a build. +> +> Imported as: +> +> - `@tanstack/react-start-rsc/serialization.client` (`import`) + +```ts + +import { SerializationAdapter } from '@tanstack/router-core'; + +// Warning: (ae-forgotten-export) The symbol "AnyCompositeComponent" needs to be exported by the entry point serialization.client.d.ts +// Warning: (ae-forgotten-export) The symbol "SerializedRsc" needs to be exported by the entry point serialization.client.d.ts +// +// @public (undocumented) +export const rscSerializationAdapter: () => SerializationAdapter[]; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/react-start-rsc/api/serialization.server.api.md b/packages/react-start-rsc/api/serialization.server.api.md new file mode 100644 index 0000000000..acd043daf2 --- /dev/null +++ b/packages/react-start-rsc/api/serialization.server.api.md @@ -0,0 +1,27 @@ +## API Report File for "@tanstack/react-start-rsc" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/serialization.server.d.ts`. Regenerate with `node scripts/api-report.mjs packages/react-start-rsc` after a build. +> +> Imported as: +> +> - `@tanstack/react-start-rsc/serialization.server` (`import`) + +```ts + +import { RawStream } from '@tanstack/router-core'; +import { SerializationAdapter } from '@tanstack/router-core'; + +// Warning: (ae-forgotten-export) The symbol "AnyCompositeComponent" needs to be exported by the entry point serialization.server.d.ts +// +// @public +export const rscSerializationAdapter: () => SerializationAdapter | undefined; +}, never>[]; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/react-start-server/api/index.api.md b/packages/react-start-server/api/index.api.md new file mode 100644 index 0000000000..1f9c8fb1ad --- /dev/null +++ b/packages/react-start-server/api/index.api.md @@ -0,0 +1,39 @@ +## API Report File for "@tanstack/react-start-server" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/index.d.ts`. Regenerate with `node scripts/api-report.mjs packages/react-start-server` after a build. +> +> Imported as: +> +> - `@tanstack/react-start-server` (`import`) + +```ts + +import { AnyRouter } from '@tanstack/router-core'; +import { HandlerCallback } from '@tanstack/start-server-core'; +import { JSX } from 'react/jsx-runtime'; +import { RequestHandler } from '@tanstack/start-server-core'; +import { RequestOptions } from '@tanstack/start-server-core'; + +// @public (undocumented) +export const defaultRenderHandler: HandlerCallback; + +// @public (undocumented) +export const defaultStreamHandler: HandlerCallback; + +export { RequestHandler } + +export { RequestOptions } + +// @public (undocumented) +export function StartServer(props: { + router: TRouter; +}): JSX.Element; + + +export * from "@tanstack/start-server-core"; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/react-start/api/client-only.api.md b/packages/react-start/api/client-only.api.md new file mode 100644 index 0000000000..9671230329 --- /dev/null +++ b/packages/react-start/api/client-only.api.md @@ -0,0 +1,15 @@ +## API Report File for "@tanstack/react-start" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/client-only.d.ts`. Regenerate with `node scripts/api-report.mjs packages/react-start` after a build. +> +> Imported as: +> +> - `@tanstack/react-start/client-only` (`import`) + +```ts + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/react-start/api/client-rpc.api.md b/packages/react-start/api/client-rpc.api.md new file mode 100644 index 0000000000..b74093eaee --- /dev/null +++ b/packages/react-start/api/client-rpc.api.md @@ -0,0 +1,18 @@ +## API Report File for "@tanstack/react-start" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/client-rpc.d.ts`. Regenerate with `node scripts/api-report.mjs packages/react-start` after a build. +> +> Imported as: +> +> - `@tanstack/react-start/client-rpc` (`import`) + +```ts + + +export * from "@tanstack/start-client-core/client-rpc"; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/react-start/api/client.api.md b/packages/react-start/api/client.api.md new file mode 100644 index 0000000000..270799b393 --- /dev/null +++ b/packages/react-start/api/client.api.md @@ -0,0 +1,18 @@ +## API Report File for "@tanstack/react-start" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/client.d.ts`. Regenerate with `node scripts/api-report.mjs packages/react-start` after a build. +> +> Imported as: +> +> - `@tanstack/react-start/client` (`import`) + +```ts + + +export * from "@tanstack/react-start-client"; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/react-start/api/default-entry/server.api.md b/packages/react-start/api/default-entry/server.api.md new file mode 100644 index 0000000000..ec1a03c12c --- /dev/null +++ b/packages/react-start/api/default-entry/server.api.md @@ -0,0 +1,30 @@ +## API Report File for "@tanstack/react-start" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/default-entry/esm/server.d.ts`. Regenerate with `node scripts/api-report.mjs packages/react-start` after a build. +> +> Imported as: +> +> - `@tanstack/react-start/server-entry` (`import`) + +```ts + +import { Register } from '@tanstack/react-router'; +import { RequestHandler } from '@tanstack/react-start-server'; + +// @public (undocumented) +export const createServerEntry: (entry: ServerEntry) => ServerEntry; + +// @public (undocumented) +const _default: ServerEntry; +export default _default; + +// @public (undocumented) +export type ServerEntry = { + fetch: RequestHandler; +}; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/react-start/api/hydration.api.md b/packages/react-start/api/hydration.api.md new file mode 100644 index 0000000000..190bd21feb --- /dev/null +++ b/packages/react-start/api/hydration.api.md @@ -0,0 +1,58 @@ +## API Report File for "@tanstack/react-start" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/hydration.d.ts`. Regenerate with `node scripts/api-report.mjs packages/react-start` after a build. +> +> Imported as: +> +> - `@tanstack/react-start/hydration` (`import`) + +```ts + +import { condition } from '@tanstack/react-start-client/hydration'; +import { HydrationCondition } from '@tanstack/react-start-client/hydration'; +import { HydrationInteractionEvent } from '@tanstack/react-start-client/hydration'; +import { HydrationInteractionEvents } from '@tanstack/react-start-client/hydration'; +import { HydrationPrefetchStrategy } from '@tanstack/react-start-client/hydration'; +import { HydrationStrategy } from '@tanstack/react-start-client/hydration'; +import { HydrationWhen } from '@tanstack/react-start-client/hydration'; +import { idle } from '@tanstack/react-start-client/hydration'; +import { interaction } from '@tanstack/react-start-client/hydration'; +import { load } from '@tanstack/react-start-client/hydration'; +import { media } from '@tanstack/react-start-client/hydration'; +import { never } from '@tanstack/react-start-client/hydration'; +import { visible } from '@tanstack/react-start-client/hydration'; +import { VisibleHydrationOptions } from '@tanstack/react-start-client/hydration'; + +export { condition } + +export { HydrationCondition } + +export { HydrationInteractionEvent } + +export { HydrationInteractionEvents } + +export { HydrationPrefetchStrategy } + +export { HydrationStrategy } + +export { HydrationWhen } + +export { idle } + +export { interaction } + +export { load } + +export { media } + +export { never } + +export { visible } + +export { VisibleHydrationOptions } + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/react-start/api/index.api.md b/packages/react-start/api/index.api.md new file mode 100644 index 0000000000..b3dd207249 --- /dev/null +++ b/packages/react-start/api/index.api.md @@ -0,0 +1,68 @@ +## API Report File for "@tanstack/react-start" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/index.d.ts`. Regenerate with `node scripts/api-report.mjs packages/react-start` after a build. +> +> Imported as: +> +> - `@tanstack/react-start` (`react-server`) +> - `@tanstack/react-start` (`import`) + +```ts + +import { createClientOnlyFn } from '@tanstack/start-client-core'; +import { createCsrfMiddleware } from '@tanstack/start-client-core'; +import { createIsomorphicFn } from '@tanstack/start-client-core'; +import { createMiddleware } from '@tanstack/start-client-core'; +import { createServerFn } from '@tanstack/start-client-core'; +import { createServerOnlyFn } from '@tanstack/start-client-core'; +import { createStart } from '@tanstack/start-client-core'; +import { Hydrate } from '@tanstack/react-start-client/Hydrate'; +import { HydrateOptions } from '@tanstack/react-start-client/Hydrate'; +import { HydrateProps } from '@tanstack/react-start-client/Hydrate'; +import { HydrationInteractionEvent } from '@tanstack/react-start-client/Hydrate'; +import { HydrationInteractionEvents } from '@tanstack/react-start-client/Hydrate'; +import { HydrationPrefetchStrategy } from '@tanstack/react-start-client/Hydrate'; +import { HydrationStrategy } from '@tanstack/react-start-client/Hydrate'; +import { HydrationWhen } from '@tanstack/react-start-client/Hydrate'; + +export { createClientOnlyFn } + +export { createCsrfMiddleware } + +export { createIsomorphicFn } + +export { createMiddleware } + +export { createServerFn } + +export { createServerOnlyFn } + +export { createStart } + +export { Hydrate } + +export { HydrateOptions } + +export { HydrateProps } + +export { HydrationInteractionEvent } + +export { HydrationInteractionEvents } + +export { HydrationPrefetchStrategy } + +export { HydrationStrategy } + +export { HydrationWhen } + +// @public (undocumented) +export function useServerFn) => Promise>(serverFn: T): (...args: Parameters) => ReturnType; + + +export * from "@tanstack/start-client-core"; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/react-start/api/plugin/rsbuild.api.md b/packages/react-start/api/plugin/rsbuild.api.md new file mode 100644 index 0000000000..62fde9fa8a --- /dev/null +++ b/packages/react-start/api/plugin/rsbuild.api.md @@ -0,0 +1,25 @@ +## API Report File for "@tanstack/react-start" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/plugin/rsbuild.d.ts`. Regenerate with `node scripts/api-report.mjs packages/react-start` after a build. +> +> Imported as: +> +> - `@tanstack/react-start/plugin/rsbuild` (`import`) + +```ts + +import { RsbuildPlugin } from '@rsbuild/core'; +import { TanStackStartRsbuildInputConfig } from '@tanstack/start-plugin-core/rsbuild'; + +// @public (undocumented) +export function tanstackStart(options?: TanStackStartRsbuildInputConfig & { + rsc?: { + enabled?: boolean; + }; +}): RsbuildPlugin; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/react-start/api/plugin/vite.api.md b/packages/react-start/api/plugin/vite.api.md new file mode 100644 index 0000000000..172376720c --- /dev/null +++ b/packages/react-start/api/plugin/vite.api.md @@ -0,0 +1,25 @@ +## API Report File for "@tanstack/react-start" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/plugin/vite.d.ts`. Regenerate with `node scripts/api-report.mjs packages/react-start` after a build. +> +> Imported as: +> +> - `@tanstack/react-start/plugin/vite` (`import`) + +```ts + +import { PluginOption } from 'vite'; +import { TanStackStartViteInputConfig } from '@tanstack/start-plugin-core/vite'; + +// @public (undocumented) +export function tanstackStart(options?: TanStackStartViteInputConfig & { + rsc?: { + enabled?: boolean; + }; +}): Array; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/react-start/api/rsbuild/browser-decode.api.md b/packages/react-start/api/rsbuild/browser-decode.api.md new file mode 100644 index 0000000000..5ffe085b53 --- /dev/null +++ b/packages/react-start/api/rsbuild/browser-decode.api.md @@ -0,0 +1,18 @@ +## API Report File for "@tanstack/react-start" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/rsbuild/browser-decode.d.ts`. Regenerate with `node scripts/api-report.mjs packages/react-start` after a build. +> +> Imported as: +> +> - `@tanstack/react-start/rsbuild/browser-decode` (`import`) + +```ts + + +export * from "@tanstack/react-start-rsc/rsbuild/browser-decode"; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/react-start/api/rsbuild/ssr-decode.api.md b/packages/react-start/api/rsbuild/ssr-decode.api.md new file mode 100644 index 0000000000..45560fb88e --- /dev/null +++ b/packages/react-start/api/rsbuild/ssr-decode.api.md @@ -0,0 +1,18 @@ +## API Report File for "@tanstack/react-start" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/rsbuild/ssr-decode.d.ts`. Regenerate with `node scripts/api-report.mjs packages/react-start` after a build. +> +> Imported as: +> +> - `@tanstack/react-start/rsbuild/ssr-decode` (`import`) + +```ts + + +export * from "@tanstack/react-start-rsc/rsbuild/ssr-decode"; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/react-start/api/rsc.api.md b/packages/react-start/api/rsc.api.md new file mode 100644 index 0000000000..ca40a50748 --- /dev/null +++ b/packages/react-start/api/rsc.api.md @@ -0,0 +1,18 @@ +## API Report File for "@tanstack/react-start" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/rsc.d.ts`. Regenerate with `node scripts/api-report.mjs packages/react-start` after a build. +> +> Imported as: +> +> - `@tanstack/react-start/rsc` (`import`) + +```ts + + +export * from "@tanstack/react-start-rsc"; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/react-start/api/rsc.rsc.api.md b/packages/react-start/api/rsc.rsc.api.md new file mode 100644 index 0000000000..65dc9ecaa3 --- /dev/null +++ b/packages/react-start/api/rsc.rsc.api.md @@ -0,0 +1,18 @@ +## API Report File for "@tanstack/react-start" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/rsc.rsc.d.ts`. Regenerate with `node scripts/api-report.mjs packages/react-start` after a build. +> +> Imported as: +> +> - `@tanstack/react-start/rsc` (`react-server`) + +```ts + + +export * from "@tanstack/react-start-rsc"; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/react-start/api/rsc/serialization/client.api.md b/packages/react-start/api/rsc/serialization/client.api.md new file mode 100644 index 0000000000..aba93c381c --- /dev/null +++ b/packages/react-start/api/rsc/serialization/client.api.md @@ -0,0 +1,19 @@ +## API Report File for "@tanstack/react-start" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/rsc/serialization/client.d.ts`. Regenerate with `node scripts/api-report.mjs packages/react-start` after a build. +> +> Imported as: +> +> - `@tanstack/react-start/rsc/serialization/client` (`import`) + +```ts + +import { rscSerializationAdapter } from '@tanstack/react-start-rsc/serialization.client'; + +export { rscSerializationAdapter } + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/react-start/api/rsc/serialization/server.api.md b/packages/react-start/api/rsc/serialization/server.api.md new file mode 100644 index 0000000000..269c70d69a --- /dev/null +++ b/packages/react-start/api/rsc/serialization/server.api.md @@ -0,0 +1,19 @@ +## API Report File for "@tanstack/react-start" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/rsc/serialization/server.d.ts`. Regenerate with `node scripts/api-report.mjs packages/react-start` after a build. +> +> Imported as: +> +> - `@tanstack/react-start/rsc/serialization/server` (`import`) + +```ts + +import { rscSerializationAdapter } from '@tanstack/react-start-rsc/serialization.server'; + +export { rscSerializationAdapter } + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/react-start/api/server-only.api.md b/packages/react-start/api/server-only.api.md new file mode 100644 index 0000000000..7cc785676e --- /dev/null +++ b/packages/react-start/api/server-only.api.md @@ -0,0 +1,15 @@ +## API Report File for "@tanstack/react-start" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/server-only.d.ts`. Regenerate with `node scripts/api-report.mjs packages/react-start` after a build. +> +> Imported as: +> +> - `@tanstack/react-start/server-only` (`import`) + +```ts + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/react-start/api/server-rpc.api.md b/packages/react-start/api/server-rpc.api.md new file mode 100644 index 0000000000..36e4ee2591 --- /dev/null +++ b/packages/react-start/api/server-rpc.api.md @@ -0,0 +1,19 @@ +## API Report File for "@tanstack/react-start" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/server-rpc.d.ts`. Regenerate with `node scripts/api-report.mjs packages/react-start` after a build. +> +> Imported as: +> +> - `@tanstack/react-start/server-rpc` (`import`) + +```ts + +import { createServerRpc } from '@tanstack/start-server-core/createServerRpc'; + +export { createServerRpc } + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/react-start/api/server.api.md b/packages/react-start/api/server.api.md new file mode 100644 index 0000000000..0dd5d84f7a --- /dev/null +++ b/packages/react-start/api/server.api.md @@ -0,0 +1,18 @@ +## API Report File for "@tanstack/react-start" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/server.d.ts`. Regenerate with `node scripts/api-report.mjs packages/react-start` after a build. +> +> Imported as: +> +> - `@tanstack/react-start/server` (`import`) + +```ts + + +export * from "@tanstack/react-start-server"; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/react-start/api/server.rsc.api.md b/packages/react-start/api/server.rsc.api.md new file mode 100644 index 0000000000..c26177101d --- /dev/null +++ b/packages/react-start/api/server.rsc.api.md @@ -0,0 +1,18 @@ +## API Report File for "@tanstack/react-start" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/server.rsc.d.ts`. Regenerate with `node scripts/api-report.mjs packages/react-start` after a build. +> +> Imported as: +> +> - `@tanstack/react-start/server` (`react-server`) + +```ts + + +export * from "@tanstack/start-server-core/request-response"; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/react-start/api/ssr-rpc.api.md b/packages/react-start/api/ssr-rpc.api.md new file mode 100644 index 0000000000..12c51de3b3 --- /dev/null +++ b/packages/react-start/api/ssr-rpc.api.md @@ -0,0 +1,19 @@ +## API Report File for "@tanstack/react-start" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/ssr-rpc.d.ts`. Regenerate with `node scripts/api-report.mjs packages/react-start` after a build. +> +> Imported as: +> +> - `@tanstack/react-start/ssr-rpc` (`import`) + +```ts + +import { createSsrRpc } from '@tanstack/start-server-core/createSsrRpc'; + +export { createSsrRpc } + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/router-core/api/index.api.md b/packages/router-core/api/index.api.md new file mode 100644 index 0000000000..dbdc851779 --- /dev/null +++ b/packages/router-core/api/index.api.md @@ -0,0 +1,2655 @@ +## API Report File for "@tanstack/router-core" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/index.d.ts`. Regenerate with `node scripts/api-report.mjs packages/router-core` after a build. +> +> Imported as: +> +> - `@tanstack/router-core` (`import`) + +```ts + +import { HistoryAction } from '@tanstack/history'; +import { HistoryLocation } from '@tanstack/history'; +import { HistoryState } from '@tanstack/history'; +import { ParsedHistoryState } from '@tanstack/history'; +import { Plugin as Plugin_2 } from 'seroval'; +import { PluginInfo } from 'seroval'; +import { RouterHistory } from '@tanstack/history'; +import { SerovalNode } from 'seroval'; + +// Warning: (ae-forgotten-export) The symbol "CurrentPath" needs to be exported by the entry point index.d.ts +// Warning: (ae-forgotten-export) The symbol "ParentPath" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type AbsoluteToPath = (string extends TFrom ? CurrentPath : TFrom extends `/` ? never : CurrentPath) | (string extends TFrom ? ParentPath : TFrom extends `/` ? never : ParentPath) | RouteToPath | (TFrom extends '/' ? never : string extends TFrom ? never : InferDescendantToPaths>); + +// @public +export interface ActiveOptions { + exact?: boolean; + explicitUndefined?: boolean; + includeHash?: boolean; + includeSearch?: boolean; +} + +// @public (undocumented) +export type AddLeadingSlash = T & `/${string}` extends never ? `/${T & string}` : T; + +// @public (undocumented) +export type AddTrailingSlash = T extends `${string}/` ? T : `${T & string}/`; + +// @public (undocumented) +export type AllContext = ParseRoute extends infer TRoutes extends AnyRoute ? PartialMergeAll : never; + +// @public (undocumented) +export type AllLoaderData = ParseRoute extends infer TRoutes extends AnyRoute ? PartialMergeAll : never; + +// @public (undocumented) +export type AllParams = ParseRoute extends infer TRoutes extends AnyRoute ? PartialMergeAll : never; + +// @public (undocumented) +export type AnyContext = {}; + +// @public (undocumented) +export type AnyMatchAndValue = { + match: any; + value: any; +}; + +// @public (undocumented) +export type AnyPathParams = {}; + +// @public (undocumented) +export type AnyRedirect = Redirect; + +// @public (undocumented) +export type AnyRoute = Route; + +// @public (undocumented) +export type AnyRouteMatch = RouteMatch; + +// @public (undocumented) +export type AnyRouter = RouterCore; + +// @public (undocumented) +export type AnyRouterConfig = RouterConfig; + +// @public (undocumented) +export type AnyRouterWithContext = RouterCore, any, any, any, any>; + +// @public (undocumented) +export type AnyRouteWithContext = AnyRoute & { + types: { + allContext: TContext; + }; +}; + +// @public (undocumented) +export type AnySchema = {}; + +// @public (undocumented) +export type AnySearchValidator = SearchValidator; + +// @public (undocumented) +export type AnySerializationAdapter = SerializationAdapter; + +// @public (undocumented) +export type AnyStandardSchemaValidate = (value: unknown) => (AnyStandardSchemaValidateSuccess | AnyStandardSchemaValidateFailure) | Promise; + +// @public (undocumented) +export interface AnyStandardSchemaValidateFailure { + // (undocumented) + readonly issues: ReadonlyArray; +} + +// @public (undocumented) +export interface AnyStandardSchemaValidateInput { + // (undocumented) + readonly value: any; +} + +// @public (undocumented) +export interface AnyStandardSchemaValidateIssue { + // (undocumented) + readonly message: string; +} + +// @public (undocumented) +export interface AnyStandardSchemaValidateSuccess { + // (undocumented) + readonly issues?: undefined; + // (undocumented) + readonly value: any; +} + +// @public (undocumented) +export type AnyStandardSchemaValidator = StandardSchemaValidator; + +// @public (undocumented) +export type AnyValidator = Validator; + +// @public (undocumented) +export type AnyValidatorAdapter = ValidatorAdapter; + +// @public (undocumented) +export type AnyValidatorFn = ValidatorFn; + +// @public (undocumented) +export type AnyValidatorObj = ValidatorObj; + +// @public (undocumented) +export function appendUniqueUserTags(target: Array, tags: Array): void; + +// @public (undocumented) +export type AssetCrossOrigin = 'anonymous' | 'use-credentials'; + +// @public (undocumented) +export type AssetCrossOriginConfig = AssetCrossOrigin | Partial>; + +// @public (undocumented) +export type Assign = TLeft extends any ? TRight extends any ? IsNonEmptyObject extends false ? TRight : IsNonEmptyObject extends false ? TLeft : keyof TLeft & keyof TRight extends never ? TLeft & TRight : Omit & TRight : never : never; + +// @public (undocumented) +export type Awaitable = T | Promise; + +// @public (undocumented) +export class BaseRootRoute = {}, in out TLoaderFn = undefined, in out TChildren = unknown, in out TFileRouteTypes = unknown, in out TSSR = unknown, in out TServerMiddlewares = unknown, in out THandlers = undefined> extends BaseRoute { + constructor(options?: RootRouteOptions); +} + +// @public (undocumented) +export class BaseRoute, in out TCustomId extends string = string, in out TId extends string = ResolveId, in out TSearchValidator = undefined, in out TParams = ResolveParams, in out TRouterContext = AnyContext, in out TRouteContextFn = AnyContext, in out TBeforeLoadFn = AnyContext, in out TLoaderDeps extends Record = {}, in out TLoaderFn = undefined, in out TChildren = unknown, in out TFileRouteTypes = unknown, in out TSSR = unknown, in out TServerMiddlewares = unknown, in out THandlers = undefined> { + constructor(options?: RouteOptions); + // (undocumented) + addChildren: RouteAddChildrenFn; + // (undocumented) + _addFileChildren: RouteAddFileChildrenFn; + // (undocumented) + _addFileTypes: RouteAddFileTypesFn; + // (undocumented) + children?: TChildren; + // (undocumented) + get fullPath(): TFullPath; + // (undocumented) + get id(): TId; + // (undocumented) + init: (originalIndex: number) => void; + // (undocumented) + isRoot: TParentRoute extends AnyRoute ? true : false; + // (undocumented) + lazy: RouteLazyFn>; + // (undocumented) + lazyFn?: () => Promise>>; + // (undocumented) + options: RouteOptions; + // (undocumented) + originalIndex?: number; + // (undocumented) + parentRoute: TParentRoute; + // (undocumented) + get path(): TPath; + // (undocumented) + rank: number; + redirect: RedirectFnRoute; + // (undocumented) + get to(): TrimPathRight; + // (undocumented) + types: RouteTypes; + // (undocumented) + update: (options: UpdatableRouteOptions) => this; + // (undocumented) + updateLoader: (options: { + loader: Constrain>; + }) => BaseRoute; +} + +// @public (undocumented) +export class BaseRouteApi { + constructor(input: { + id: TId; + }); + // (undocumented) + id: TId; + // (undocumented) + notFound: (opts?: NotFoundError) => NotFoundError; + redirect: RedirectFnRoute['fullPath']>; +} + +// @public (undocumented) +export type BaseRouteOptions = {}, TLoaderFn = undefined, TRouterContext = {}, TRouteContextFn = AnyContext, TBeforeLoadFn = AnyContext, TSSR = unknown, TServerMiddlewares = unknown, THandlers = undefined> = RoutePathOptions & FileBaseRouteOptions & { + getParentRoute: () => TParentRoute; +}; + +// @public (undocumented) +export interface BeforeLoadContextOptions extends ContextOptions, FullSearchSchemaOption { + // (undocumented) + context: Expand>; +} + +// @public (undocumented) +export type BeforeLoadContextParameter = Assign, ContextReturnType>; + +// @public +export function buildDevStylesUrl(basepath: string, routeIds: Array): string; + +// @public (undocumented) +export type BuildLocationFn = | string = string, TMaskFrom extends RoutePaths | string = TFrom, TMaskTo extends string = ''>(opts: ToOptions & { + leaveParams?: boolean; + _includeValidateSearch?: boolean; + _isNavigate?: boolean; +}) => ParsedLocation; + +// @public (undocumented) +export interface BuildNextOptions { + // (undocumented) + from?: string; + // (undocumented) + _fromLocation?: ParsedLocation; + // (undocumented) + hash?: true | Updater; + // (undocumented) + href?: string; + // (undocumented) + _isNavigate?: boolean; + // (undocumented) + mask?: { + to?: string | number | null; + params?: true | Updater; + search?: true | Updater; + hash?: true | Updater; + state?: true | NonNullableUpdater; + unmaskOnReload?: boolean; + }; + // (undocumented) + params?: true | Updater; + // (undocumented) + search?: true | Updater; + // (undocumented) + state?: true | NonNullableUpdater; + // (undocumented) + to?: string | number | null; + // (undocumented) + unsafeRelative?: 'path'; +} + +// @public +export function cleanPath(path: string): string; + +// @public (undocumented) +export type ClearCacheFn = (opts?: { + filter?: (d: MakeRouteMatchUnion) => boolean; +}) => void; + +// Warning: (ae-forgotten-export) The symbol "ParseRouteWithoutBranches" needs to be exported by the entry point index.d.ts +// Warning: (ae-forgotten-export) The symbol "RouteToByRouter" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type CodeRouteToPath = ParseRouteWithoutBranches extends infer TRoute extends AnyRoute ? TRoute extends any ? RouteToByRouter : never : never; + +// @public (undocumented) +export type CommitLocationFn = (input: ParsedLocation & CommitLocationOptions) => Promise; + +// @public (undocumented) +export interface CommitLocationOptions { + // (undocumented) + hashScrollIntoView?: boolean | ScrollIntoViewOptions; + // (undocumented) + ignoreBlocker?: boolean; + // (undocumented) + replace?: boolean; + // (undocumented) + resetScroll?: boolean; + // @deprecated (undocumented) + startTransition?: boolean; + // (undocumented) + viewTransition?: boolean | ViewTransitionOptions; +} + +// @public +export function composeRewrites(rewrites: Array): { + input: (input: { + url: URL; + }) => URL; + output: (input: { + url: URL; + }) => URL; +}; + +// Warning: (ae-forgotten-export) The symbol "SsrBodyScriptParts" needs to be exported by the entry point index.d.ts +// Warning: (ae-forgotten-export) The symbol "InitialHydrationScriptTags" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export function composeSsrBodyScripts(input: SsrBodyScriptParts, initialHydrationScripts?: InitialHydrationScriptTags): Array; + +// @public (undocumented) +export type Constrain = (T extends TConstraint ? T : never) | TDefault; + +// @public (undocumented) +export type ConstrainLiteral = (T & TConstraint) | TDefault; + +// @public (undocumented) +export type ContextAsyncReturnType = unknown extends TContextFn ? TContextFn : LooseAsyncReturnType extends never ? AnyContext : LooseAsyncReturnType; + +// @public (undocumented) +export interface ContextOptions { + // (undocumented) + abortController: AbortController; + // (undocumented) + buildLocation: BuildLocationFn; + // (undocumented) + cause: 'preload' | 'enter' | 'stay'; + // (undocumented) + location: ParsedLocation; + // (undocumented) + matches: Array; + // @deprecated (undocumented) + navigate: NavigateFn; + // (undocumented) + params: Expand>; + // (undocumented) + preload: boolean; + // (undocumented) + routeId: TRouteId; +} + +// @public (undocumented) +export type ContextReturnType = unknown extends TContextFn ? TContextFn : LooseReturnType extends never ? AnyContext : LooseReturnType; + +// @public (undocumented) +export type ControllablePromise = Promise & { + resolve: (value: T) => void; + reject: (value?: any) => void; +}; + +// @public (undocumented) +export type ControlledPromise = Promise & { + resolve: (value: T) => void; + reject: (value: any) => void; + status: 'pending' | 'resolved' | 'rejected'; + value?: T; +}; + +// @public +export function createControlledPromise(onResolve?: (value: T) => void): ControlledPromise; + +// Warning: (ae-forgotten-export) The symbol "FileRouteOptions" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type CreateFileRoute = , TRouteContextFn = AnyContext, TBeforeLoadFn = AnyContext, TLoaderDeps extends Record = {}, TLoaderFn = undefined, TSSR = unknown, TServerMiddlewares = unknown, THandlers = undefined>(options?: FileRouteOptions) => Route; + +// @public (undocumented) +export function createInlineCssStyleAsset(css: string): ManifestInlineCss; + +// @public (undocumented) +export type CreateLazyFileRoute = (opts: LazyRouteOptions) => LazyRoute; + +// @public (undocumented) +export type CreateMatchAndValue = TValue extends any ? { + match: TMatch; + value: TValue; +} : never; + +// @public +export function createNonReactiveMutableStore(initialValue: TValue): RouterWritableStore; + +// @public +export function createNonReactiveReadonlyStore(read: () => TValue): RouterReadableStore; + +// @public (undocumented) +export const createRouterConfig: = [], TDefaultSsr extends SSROption = SSROption>(options: RouterConfigOptions) => RouterConfig; + +// @public (undocumented) +export type CreateRouterFn = = Record>(options: undefined extends number ? 'strictNullChecks must be enabled in tsconfig.json' : RouterConstructorOptions) => RouterCore; + +// Warning: (ae-forgotten-export) The symbol "CreateSerializationAdapterOptions" needs to be exported by the entry point index.d.ts +// +// @public +export function createSerializationAdapter | never = never>(opts: CreateSerializationAdapterOptions): SerializationAdapter; + +// @public +export function decode(str: any): any; + +// @public +export function deepEqual(a: any, b: any, partial?: boolean, explicitUndefined?: boolean): boolean; + +// @public (undocumented) +export type DeepPartial = T extends object ? { + [P in keyof T]?: DeepPartial; +} : T; + +// @public +export const DEFAULT_PROTOCOL_ALLOWLIST: string[]; + +// @public (undocumented) +export interface DefaultErrorBoundaryTypes { + // (undocumented) + error: unknown; +} + +// @public +export const defaultGetScrollRestorationKey: (location: ParsedLocation) => string; + +// @public +export const defaultParseSearch: (searchStr: string) => AnySchema; + +// @public (undocumented) +export type DefaultRemountDepsFn = (opts: MakeRemountDepsOptionsUnion) => any; + +// @public (undocumented) +export type DefaultSearchValidator = SearchValidator, AnySchema>; + +// @public (undocumented) +export interface DefaultSerializable { + // (undocumented) + bigint: bigint; + // (undocumented) + boolean: boolean; + // (undocumented) + Date: Date; + // (undocumented) + null: null; + // (undocumented) + number: number; + // (undocumented) + RawStream: RawStream; + // (undocumented) + string: string; + // (undocumented) + TsrSerializable: TsrSerializable; + // (undocumented) + Uint8Array: Uint8Array; + // (undocumented) + undefined: undefined; + // (undocumented) + void: void; +} + +// @public +export function defaultSerializeError(err: unknown): { + name: string; + message: string; +} | { + data: unknown; +}; + +// @public +export const defaultStringifySearch: (search: Record) => string; + +// @public (undocumented) +export type DefaultValidator = Validator, AnySchema>; + +// @public +export function defer(_promise: Promise, options?: { + serializeError?: typeof defaultSerializeError; +}): DeferredPromise; + +// @public (undocumented) +export type DeferredPromise = Promise & { + [TSR_DEFERRED_PROMISE]: DeferredPromiseState; +}; + +// @public (undocumented) +export type DeferredPromiseState = { + status: 'pending'; + data?: T; + error?: unknown; +} | { + status: 'success'; + data: T; +} | { + status: 'error'; + data?: T; + error: unknown; +}; + +// @public (undocumented) +export const DEV_STYLES_ATTR = "data-tanstack-router-dev-styles"; + +// @public (undocumented) +export type EmitFn = (routerEvent: RouterEvent) => void; + +// @public +export function encode(obj: Record, stringify?: (value: any) => string): string; + +// @public +export interface ErrorBoundaryTypes extends DefaultErrorBoundaryTypes { +} + +// @public (undocumented) +export type ErrorComponentProps = { + error: TError; + info?: { + componentStack: string; + }; + reset: () => void; +}; + +// @public @deprecated (undocumented) +export type ErrorRouteProps = { + error: unknown; + info?: { + componentStack: string; + }; + reset: () => void; +}; + +// @public +export function escapeHtml(str: string): string; + +// @public +export function exactPathTest(pathName1: string, pathName2: string, basepath: string): boolean; + +// @public +export function executeRewriteInput(rewrite: LocationRewrite | undefined, url: URL): URL; + +// @public (undocumented) +export type Expand = T extends object ? T extends infer O ? O extends Function ? O : { + [K in keyof O]: O[K]; +} : never : T; + +// @public (undocumented) +export type ExtractObjects = TUnion extends MergeAllPrimitive ? never : TUnion; + +// @public (undocumented) +export type ExtractPrimitives = TUnion extends MergeAllPrimitive ? TUnion : TUnion extends object ? never : TUnion; + +// @public (undocumented) +export type FileBaseRouteOptions = {}, TLoaderFn = undefined, TRouterContext = {}, TRouteContextFn = AnyContext, TBeforeLoadFn = AnyContext, TRemountDepsFn = AnyContext, TSSR = unknown, TServerMiddlewares = unknown, THandlers = undefined> = ParamsOptions & FilebaseRouteOptionsInterface; + +// @public (undocumented) +export interface FilebaseRouteOptionsInterface = {}, TLoaderFn = undefined, TRouterContext = {}, TRouteContextFn = AnyContext, TBeforeLoadFn = AnyContext, TRemountDepsFn = AnyContext, TSSR = unknown, TServerMiddlewares = unknown, THandlers = undefined> { + // Warning: (ae-forgotten-export) The symbol "ValidateSerializableLifecycleResult" needs to be exported by the entry point index.d.ts + // + // (undocumented) + beforeLoad?: Constrain) => ValidateSerializableLifecycleResult>; + // (undocumented) + context?: Constrain) => any>; + // Warning: (ae-forgotten-export) The symbol "RouteLoaderObject" needs to be exported by the entry point index.d.ts + // + // (undocumented) + loader?: Constrain | RouteLoaderObject>; + // (undocumented) + loaderDeps?: (opts: FullSearchSchemaOption) => TLoaderDeps; + // (undocumented) + remountDeps?: Constrain, Expand>, TLoaderDeps>) => any>; + // (undocumented) + shouldReload?: boolean | ((match: LoaderFnContext) => any); + // (undocumented) + ssr?: Constrain) => Awaitable)>; + // (undocumented) + validateSearch?: Constrain; +} + +// @public (undocumented) +export interface FileRoutesByPath { +} + +// @public (undocumented) +export interface FileRouteTypes { + // (undocumented) + fileRoutesByFullPath: any; + // (undocumented) + fileRoutesById: any; + // (undocumented) + fileRoutesByTo: any; + // (undocumented) + fullPaths: any; + // (undocumented) + id: any; + // (undocumented) + to: any; +} + +// @public (undocumented) +export type FindDescendantToPaths = `${TPrefix}/${string}` & RouteToPath; + +// @public (undocumented) +export type FindValueByIndex> = TKey extends `${infer TIndex extends number}` ? TValue[TIndex] : never; + +// @public (undocumented) +export type FindValueByKey = TValue extends ReadonlyArray ? FindValueByIndex : TValue[TKey & keyof TValue]; + +// @public (undocumented) +export type FromPathOption = ConstrainLiteral>; + +// @public (undocumented) +export type FullSearchSchema = ParseRoute extends infer TRoutes extends AnyRoute ? PartialMergeAll : never; + +// @public (undocumented) +export type FullSearchSchemaInput = ParseRoute extends infer TRoutes extends AnyRoute ? PartialMergeAll : never; + +// @public (undocumented) +export interface FullSearchSchemaOption { + // (undocumented) + search: Expand>; +} + +// @public +export function functionalUpdate(updater: Updater | NonNullableUpdater, previous: TPrevious): TResult; + +// @public (undocumented) +export function getAssetCrossOrigin(assetCrossOrigin: AssetCrossOriginConfig | undefined, kind: 'script' | 'stylesheet'): AssetCrossOrigin | undefined; + +// @public +export function _getAssetMatches(matches: Array): Array; + +// @public (undocumented) +export function getElementScrollRestorationEntry(router: AnyRouter, options: ({ + id: string; + getElement?: () => Window | Element | undefined | null; +} | { + id?: string; + getElement: () => Window | Element | undefined | null; +}) & { + getKey?: (location: ParsedLocation) => string; +}): ScrollRestorationEntry | undefined; + +// @public +export function getInitialRouterState(location: ParsedLocation): RouterState; + +// @public +export function getLocationChangeInfo(location: ParsedLocation, resolvedLocation?: ParsedLocation): { + fromLocation: ParsedLocation<{}> | undefined; + toLocation: ParsedLocation<{}>; + pathChanged: boolean; + hrefChanged: boolean; + hashChanged: boolean; +}; + +// @public (undocumented) +export function getManifestScriptFormat(manifest: { + scriptFormat?: ScriptFormat; +} | undefined): ScriptFormat; + +// @public (undocumented) +export type GetMatchRoutesFn = (pathname: string) => [ +matchedRoutes: ReadonlyArray, +rawParams: Record, +foundRoute: AnyRoute | undefined +]; + +// @public +export function _getRenderedMatches(matches: Array): Array; + +// Warning: (ae-forgotten-export) The symbol "RouteInterpolation" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export function getRouteSegments(route: AnyRoute): RouteInterpolation | undefined; + +// @public (undocumented) +export function getScriptPreloadAttrs(manifest: { + scriptFormat?: ScriptFormat; +} | undefined, link: ManifestAssetLink, assetCrossOrigin?: AssetCrossOriginConfig): { + rel: 'modulepreload' | 'preload'; + as?: 'script'; + href: string; + fetchPriority: 'low'; + crossOrigin?: AssetCrossOrigin; +}; + +// @public (undocumented) +export function getSsrBodyScriptParts(matches: Array, manifest: Manifest | undefined, nonce: string | undefined, routeScriptAttrs?: Record): SsrBodyScriptParts; + +// Warning: (ae-forgotten-export) The symbol "StoreConfig" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type GetStoreConfig = (opts: { + isServer?: boolean; +}) => StoreConfig; + +// @public (undocumented) +export function getStylesheetHref(asset: ManifestCssLink): string; + +// @public +export function getUrlScheme(url: string): string | undefined; + +// @public (undocumented) +export function hasKeys(obj: Record): boolean; + +// @public +export function hasMissingPathParams(segments: RouteInterpolation, params: Record): boolean; + +// @public (undocumented) +export type InferAllContext = unknown extends TRoute ? TRoute : TRoute extends { + types: { + allContext: infer TAllContext; + }; +} ? TAllContext : {}; + +// @public (undocumented) +export type InferAllParams = TRoute extends { + types: { + allParams: infer TAllParams; + }; +} ? TAllParams : {}; + +// @public (undocumented) +export type InferDescendantToPaths> = TPaths extends `${TPrefix}/` ? never : TPaths extends `${TPrefix}/${infer TRest}` ? TRest : never; + +// @public (undocumented) +export type InferFileRouteTypes = unknown extends TRouteTree['types']['fileRouteTypes'] ? never : TRouteTree['types']['fileRouteTypes'] extends FileRouteTypes ? TRouteTree['types']['fileRouteTypes'] : never; + +// @public (undocumented) +export type InferFrom = TOptions extends { + from: infer TFrom extends string; +} ? TFrom : TDefaultFrom; + +// @public (undocumented) +export type InferFullSearchSchema = TRoute extends { + types: { + fullSearchSchema: infer TFullSearchSchema; + }; +} ? TFullSearchSchema : {}; + +// @public (undocumented) +export type InferFullSearchSchemaInput = TRoute extends { + types: { + fullSearchSchemaInput: infer TFullSearchSchemaInput; + }; +} ? TFullSearchSchemaInput : {}; + +// @public (undocumented) +export type InferMaskFrom = TOptions extends { + mask: { + from: infer TFrom extends string; + }; +} ? TFrom : string; + +// @public (undocumented) +export type InferMaskTo = TOptions extends { + mask: { + to: infer TTo extends string; + }; +} ? TTo : ''; + +// @public (undocumented) +export type InferSelected = TOptions extends { + select: (...args: Array) => infer TSelected; +} ? TSelected : unknown; + +// @public (undocumented) +export type InferShouldThrow = TOptions extends { + shouldThrow: infer TShouldThrow extends boolean; +} ? TShouldThrow : true; + +// @public (undocumented) +export type InferStrict = TOptions extends { + strict: infer TStrict extends boolean; +} ? TStrict : true; + +// @public (undocumented) +export type InferTo = TOptions extends { + to: infer TTo extends string; +} ? TTo : undefined; + +// @public (undocumented) +export type InlineCssTemplate = { + strings: Array; + urls: Array; +}; + +// @public +export function interpolatePath(path: string, segments: RouteInterpolation, params: Record, decoder?: (encoded: string) => string, usedParams?: Record): string; + +// @public (undocumented) +export type IntersectAssign = TLeft extends any ? TRight extends any ? IsNonEmptyObject extends false ? TRight : IsNonEmptyObject extends false ? TLeft : TRight & TLeft : never : never; + +// @public (undocumented) +export type InvalidateFn = (opts?: { + filter?: (d: MakeRouteMatchUnion) => boolean; + sync?: boolean; + forcePending?: boolean; +}) => Promise; + +// @public (undocumented) +export function invariant(): never; + +// @public (undocumented) +export type IsAny = 1 extends 0 & TValue ? TYesResult : TNoResult; + +// @public +export function isDangerousProtocol(url: string, allowlist: Set): boolean; + +// @public (undocumented) +export type IsMatch = IsMatchParse; + +// @public +export const isMatch: (match: TMatch, path: Constrain["path"]>) => match is IsMatch["result"]; + +// @public (undocumented) +export type IsMatchKeyOf = TValue extends ReadonlyArray ? number extends TValue['length'] ? `${number}` : keyof TValue & `${number}` : TValue extends object ? keyof TValue & string : never; + +// @public (undocumented) +export type IsMatchParse = TPath extends `${string}.${string}` ? TPath extends `${infer TFirst}.${infer TRest}` ? IsMatchParse, `${TParentPath}${TFirst}.`> : never : { + path: IsMatchPath; + result: IsMatchResult; +}; + +// @public (undocumented) +export type IsMatchPath = `${TParentPath}${IsMatchKeyOf}`; + +// @public (undocumented) +export type IsMatchResult = TMatchAndValue extends any ? TKey extends keyof TMatchAndValue['value'] ? TMatchAndValue['match'] : never : never; + +// @public +export function isModuleNotFoundError(error: any): boolean; + +// @public (undocumented) +export type IsNonEmptyObject = T extends object ? keyof T extends never ? false : true : false; + +// @public +export function isNotFound(obj: any): obj is NotFoundError; + +// @public (undocumented) +export function isPromise(value: Promise> | T): value is Promise>; + +// @public +export function isRedirect(obj: any): obj is AnyRedirect; + +// @public (undocumented) +export type IsRequiredParams = Record extends TParams ? never : true; + +// @public +export function isResolvedRedirect(obj: any): obj is AnyRedirect & { + options: { + href: string; + }; +}; + +// @public +export function _isRouteDeparting(router: AnyRouter, routeId: string | undefined, location: ParsedLocation): unknown; + +// @public (undocumented) +export type IsUnion = (T extends any ? (U extends T ? false : true) : never) extends false ? false : true; + +// @public +export function joinPaths(paths: Array): string; + +// @public +export function lazyFn) => any>, TKey extends keyof T = 'default'>(fn: () => Promise, key?: TKey): (...args: Parameters) => Promise>>; + +// @public (undocumented) +export interface LazyRoute { + // (undocumented) + options: { + id: string; + } & LazyRouteOptions; +} + +// @public (undocumented) +export type LazyRouteOptions = Pick, 'component' | 'errorComponent' | 'pendingComponent' | 'notFoundComponent'>; + +// @public (undocumented) +export type LinkOptions = NavigateOptions & LinkOptionsProps; + +// @public (undocumented) +export interface LinkOptionsProps { + activeOptions?: ActiveOptions; + disabled?: boolean; + preload?: false | 'intent' | 'viewport' | 'render'; + preloadDelay?: number; + target?: HTMLAnchorElement['target']; +} + +// @public (undocumented) +export type ListenerFn = (event: TEvent) => void; + +// @public (undocumented) +export interface LoaderFnContext { + // (undocumented) + abortController: AbortController; + // (undocumented) + cause: 'preload' | 'enter' | 'stay'; + // (undocumented) + context: Expand>; + // (undocumented) + deps: TLoaderDeps; + // (undocumented) + location: ParsedLocation; + // @deprecated (undocumented) + navigate: (opts: NavigateOptions) => Promise | void; + // (undocumented) + params: Expand>; + // (undocumented) + parentMatchPromise: TId extends RootRouteId ? never : Promise>; + // (undocumented) + preload: boolean; + // (undocumented) + route: AnyRoute; +} + +// @public (undocumented) +export type LoaderStaleReloadMode = 'background' | 'blocking'; + +// @public (undocumented) +export type LoadFn = (opts?: { + sync?: boolean; + action?: { + type: HistoryAction; + }; + _signal?: AbortSignal; + _skipLocationUpdate?: boolean; +}) => Promise; + +// @public (undocumented) +export type LoadRouteChunkFn = (route: AnyRoute) => Promise>; + +// @public (undocumented) +export type LocationRewrite = { + input?: LocationRewriteFunction; + output?: LocationRewriteFunction; +}; + +// @public +export type LocationRewriteFunction = (input: { + url: URL; +}) => undefined | string | URL; + +// @public (undocumented) +export type LooseAsyncReturnType = T extends (...args: Array) => infer TReturn ? TReturn extends Promise ? TReturn : TReturn : never; + +// @public (undocumented) +export type LooseReturnType = T extends (...args: Array) => infer TReturn ? TReturn : never; + +// @public (undocumented) +export type MakeDifferenceOptional = keyof TLeft & keyof TRight extends never ? TRight : Omit & { + [K in keyof TLeft & keyof TRight]?: TRight[K]; +}; + +// @public (undocumented) +export interface MakeOptionalPathParams { + // Warning: (ae-forgotten-export) The symbol "ParamsReducer" needs to be exported by the entry point index.d.ts + // + // (undocumented) + params?: true | (ParamsReducer & {}); +} + +// @public (undocumented) +export interface MakeOptionalSearchParams { + // (undocumented) + search?: true | (ParamsReducer & {}); +} + +// @public (undocumented) +export type MakeRemountDepsOptionsUnion = ParseRoute extends infer TRoute extends AnyRoute ? TRoute extends any ? RemountDepsOptions : never : never; + +// @public (undocumented) +export type MakeRouteMatch, TStrict extends boolean = true> = RouteMatch['types']['fullPath'], TStrict extends false ? AllParams : RouteById['types']['allParams'], TStrict extends false ? FullSearchSchema : RouteById['types']['fullSearchSchema'], TStrict extends false ? AllLoaderData : RouteById['types']['loaderData'], TStrict extends false ? AllContext : RouteById['types']['allContext'], RouteById['types']['loaderDeps']>; + +// @public (undocumented) +export type MakeRouteMatchFromRoute = RouteMatch; + +// @public (undocumented) +export type MakeRouteMatchUnion> = TRoute extends any ? RouteMatch : never; + +// Warning: (ae-forgotten-export) The symbol "AdapterNode" needs to be exported by the entry point index.d.ts +// +// @public +export function makeSerovalPlugin(serializationAdapter: AnySerializationAdapter): Plugin_2; + +// @public (undocumented) +export type Manifest = { + scriptFormat?: ScriptFormat; + inlineStyle?: ManifestInlineCss; + routes: Record; +}; + +// @public (undocumented) +export type ManifestAssetLink = string | { + href: string; + crossOrigin?: AssetCrossOrigin; +}; + +// @public (undocumented) +export type ManifestCssLink = string | { + href: string; + crossOrigin?: AssetCrossOrigin; + [DEV_STYLES_ATTR]?: true; +}; + +// @public (undocumented) +export type ManifestInlineCss = { + attrs?: Record; + children?: string; +}; + +// @public (undocumented) +export type ManifestRoute = { + filePath?: string; + preloads?: Array; + scripts?: Array; + css?: Array; +}; + +// @public (undocumented) +export type ManifestRouteAssets = Pick; + +// @public (undocumented) +export type ManifestScript = Omit; + +// @public (undocumented) +export interface MaskOptions { + // (undocumented) + _fromLocation?: ParsedLocation; + // (undocumented) + mask?: ToMaskOptions; +} + +// @public (undocumented) +export interface MatchLocation { + // (undocumented) + caseSensitive?: boolean; + // (undocumented) + from?: string; + // (undocumented) + fuzzy?: boolean; + // (undocumented) + to?: string | number | null; +} + +// @public (undocumented) +export type MatchRouteFn = = '/', TTo extends string | undefined = undefined, TResolved = ResolveRelativePath>>(location: ToOptions, TFrom, TTo>, opts?: MatchRouteOptions) => false | RouteById['types']['allParams']; + +// @public +export interface MatchRouteOptions { + // @deprecated + caseSensitive?: boolean; + fuzzy?: boolean; + includeSearch?: boolean; + pending?: boolean; +} + +// @public (undocumented) +export interface MatchRoutesFn { + // (undocumented) + (pathname: string, locationSearch?: AnySchema, opts?: MatchRoutesOpts): Array; + // @deprecated (undocumented) + (next: ParsedLocation, opts?: MatchRoutesOpts): Array; + // (undocumented) + (pathnameOrNext: string | ParsedLocation, locationSearchOrOpts?: AnySchema | MatchRoutesOpts, opts?: MatchRoutesOpts): Array; +} + +// @public (undocumented) +export interface MatchRoutesOpts { + // (undocumented) + throwOnError?: boolean; +} + +// @public (undocumented) +export type MergeAll = MergeAllObjects | ExtractPrimitives; + +// @public +export type MergeAllObjects>> = [keyof TIntersected] extends [never] ? never : { + [TKey in keyof TIntersected]: TUnion extends any ? TUnion[TKey & keyof TUnion] : never; +}; + +// @public (undocumented) +export type MergeAllPrimitive = ReadonlyArray | number | string | bigint | boolean | symbol | undefined | null; + +// @public (undocumented) +export type MetaDescriptor = { + charSet: 'utf-8'; +} | { + title: string; +} | { + name: string; + content: string; +} | { + property: string; + content: string; +} | { + httpEquiv: string; + content: string; +} | { + 'script:ld+json': LdJsonObject; +} | { + tagName: 'meta' | 'link'; + [name: string]: string; +} | Record; + +// @public (undocumented) +export type NavigateFn = | string = string, TMaskFrom extends RoutePaths | string = TFrom, TMaskTo extends string = ''>(opts: NavigateOptions) => Promise; + +// Warning: (ae-forgotten-export) The symbol "NavigateOptionProps" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type NavigateOptions = ToOptions & NavigateOptionProps; + +// @public (undocumented) +export type NextMatchAndValue = TMatchAndValue extends any ? CreateMatchAndValue> : never; + +// @public (undocumented) +type NoInfer_2 = [T][T extends any ? 0 : never]; +export { NoInfer_2 as NoInfer } + +// @public (undocumented) +export type NonNullableUpdater = TResult | ((prev: TPrevious) => TResult); + +// @public +export function notFound(options?: NotFoundError): NotFoundError; + +// @public (undocumented) +export type NotFoundError = { + global?: boolean; + _global?: boolean; + data?: any; + throw?: boolean; + routeId?: RouteIds; + headers?: HeadersInit; +}; + +// @public (undocumented) +export type NotFoundRouteProps = { + data?: unknown; + isNotFound: boolean; + routeId: RouteIds; +}; + +// @public (undocumented) +export type OnRawStreamCallback = (streamId: number, stream: ReadableStream) => void; + +// @public (undocumented) +export interface OptionalStructuralSharing { + // (undocumented) + readonly structuralSharing?: Constrain | undefined; +} + +// @public (undocumented) +export type ParamsOptions = { + params?: { + parse?: ParseParamsFn & ValidateParsedParams; + priority?: number; + stringify?: StringifyParamsFn; + }; + parseParams?: ParseParamsFn & ValidateParsedParams; + stringifyParams?: StringifyParamsFn; +}; + +// @public (undocumented) +export interface ParsedLocation { + external: boolean; + hash: string; + href: string; + maskedLocation?: ParsedLocation; + pathname: string; + publicHref: string; + search: TSearchObj; + searchStr: string; + state: ParsedHistoryState; + unmaskOnReload?: boolean; +} + +// @public (undocumented) +export type ParseLocationFn = (locationToParse: HistoryLocation, previousLocation?: ParsedLocation>) => ParsedLocation>; + +// @public (undocumented) +export type ParseParamsFn = (rawParams: Expand>) => TParams | false; + +// @public +export function parseRedirect(obj: any): Redirect | undefined; + +// @public (undocumented) +export type ParseRoute = TRouteTree extends { + types: { + children: infer TChildren; + }; +} ? unknown extends TChildren ? TAcc : TChildren extends ReadonlyArray ? ParseRoute : ParseRoute : TAcc; + +// @public +export function parseSearchWith(parser: (str: string) => any): (searchStr: string) => AnySchema; + +// @public (undocumented) +export type PartialMergeAll = ExtractPrimitives | PartialMergeAllObject; + +// @public (undocumented) +export type PartialMergeAllObject = ExtractObjects extends infer TObj ? [TObj] extends [never] ? never : { + [TKey in TObj extends any ? keyof TObj : never]?: TObj extends any ? TKey extends keyof TObj ? TObj[TKey] : never : never; +} : never; + +// @public +export class PathParamError extends Error { +} + +// Warning: (ae-forgotten-export) The symbol "IsRequired" needs to be exported by the entry point index.d.ts +// Warning: (ae-forgotten-export) The symbol "MakeRequiredPathParams" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type PathParamOptions = IsRequired extends never ? MakeOptionalPathParams : MakeRequiredPathParams; + +// @public (undocumented) +export type PickAsRequired = Omit & Required>; + +// @public (undocumented) +export type PickOptional = { + [K in keyof T as undefined extends T[K] ? K : never]: T[K]; +}; + +// @public (undocumented) +export type PickRequired = { + [K in keyof T as undefined extends T[K] ? never : K]: T[K]; +}; + +// @public (undocumented) +export type PreloadableObj = { + preload?: () => Promise | undefined; +}; + +// @public (undocumented) +export type PreloadRouteFn = Record> = | string = string, TTo extends string | undefined = undefined, TMaskFrom extends RoutePaths | string = TFrom, TMaskTo extends string = ''>(opts: NavigateOptions, TFrom, TTo, TMaskFrom, TMaskTo>) => Promise | undefined>; + +// @public (undocumented) +export const preloadWarning = "Error preloading route! \u261D\uFE0F"; + +// @public +export class RawStream { + constructor(stream: ReadableStream, options?: RawStreamOptions); + // (undocumented) + readonly hint: RawStreamHint; + // (undocumented) + readonly stream: ReadableStream; +} + +// @public (undocumented) +export type RawStreamHint = 'binary' | 'text'; + +// @public (undocumented) +export interface RawStreamOptions { + hint?: RawStreamHint; +} + +// @public +export type Redirect = Response & { + options: NavigateOptions; +}; + +// @public +export function redirect(opts: RedirectOptions): Redirect; + +// @public +export interface RedirectFnRoute { + // (undocumented) + (opts: RedirectOptionsRoute): Redirect; +} + +// @public (undocumented) +export type RedirectOptions = { + href?: string; + code?: number; + statusCode?: number; + throw?: any; + headers?: HeadersInit; +} & NavigateOptions; + +// @public +export type RedirectOptionsRoute = Omit, 'from'>; + +// @public (undocumented) +export interface Register { +} + +// @public (undocumented) +export type RegisteredRouter = TRegister extends { + router: infer TRouter; +} ? TRouter : AnyRouter; + +// Warning: (ae-forgotten-export) The symbol "RegisteredSerializationAdapters" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type RegisteredSerializableInput = (unknown extends RegisteredSerializationAdapters ? never : RegisteredSerializationAdapters extends ReadonlyArray ? RegisteredSerializationAdapters[number]['~types']['input'] : never) | Serializable; + +// @public (undocumented) +export type RelativeToCurrentPath> = RelativeToPath | CurrentPath; + +// @public (undocumented) +export type RelativeToParentPath> = RelativeToPath | (TTo extends `${string}..` | `${string}../` ? TResolvedPath extends '/' | '' ? never : FindDescendantToPaths> extends never ? never : `${RemoveTrailingSlashes}/${ParentPath}` : never); + +// Warning: (ae-forgotten-export) The symbol "ToPath" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type RelativeToPath = (TResolvedPath & RouteToPath extends never ? never : ToPath) | `${RemoveTrailingSlashes}/${InferDescendantToPaths>}`; + +// @public (undocumented) +export type RelativeToPathAutoComplete = string extends TTo ? string : string extends TFrom ? AbsoluteToPath : TTo & `..${string}` extends never ? TTo & `.${string}` extends never ? AbsoluteToPath : RelativeToCurrentPath : RelativeToParentPath; + +// @public (undocumented) +export interface RemountDepsOptions { + // (undocumented) + loaderDeps: TLoaderDeps; + // (undocumented) + params: TAllParams; + // (undocumented) + routeId: TRouteId; + // (undocumented) + search: TFullSearchSchema; +} + +// @public (undocumented) +export type RemoveLeadingSlashes = T & `/${string}` extends never ? T : T extends `/${infer R}` ? R : T; + +// @public +export function removeTrailingSlash(value: string, basepath: string): string; + +// @public (undocumented) +export type RemoveTrailingSlashes = T & `${string}/` extends never ? T : T extends `${infer R}/` ? R : T; + +// @public +export function replaceEqualDeep(prev: any, next: T, _nullProto?: boolean, _depth?: number): T; + +// @public (undocumented) +export interface RequiredToOptions { + to: ToPathOption & {}; +} + +// @public (undocumented) +export type ResolveAllContext = Assign, ContextAsyncReturnType>; + +// @public (undocumented) +export type ResolveAllParamsFromParent = Assign, TParams>; + +// Warning: (ae-forgotten-export) The symbol "JoinPath" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type ResolveCurrentPath = TTo extends '.' ? TFrom : TTo extends './' ? AddTrailingSlash : TTo & `./${string}` extends never ? never : TTo extends `./${infer TRest}` ? AddLeadingSlash> : never; + +// @public (undocumented) +export type ResolvedRedirect = Redirect; + +// @public (undocumented) +export type ResolveFullPath> = TPrefixed extends RootRouteId ? '/' : TPrefixed; + +// @public (undocumented) +export type ResolveFullSearchSchema = unknown extends TParentRoute ? ResolveValidatorOutput : IntersectAssign, ResolveValidatorOutput>; + +// @public (undocumented) +export type ResolveFullSearchSchemaInput = IntersectAssign, ResolveSearchValidatorInput>; + +// @public (undocumented) +export type ResolveId = TParentRoute extends { + id: infer TParentId extends string; +} ? RoutePrefix : RootRouteId; + +// Warning: (ae-forgotten-export) The symbol "ResolveRouteLoaderFn" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type ResolveLoaderData = unknown extends TLoaderFn ? TLoaderFn : LooseAsyncReturnType> extends never ? undefined : LooseAsyncReturnType>; + +// @public (undocumented) +export function resolveManifestAssetLink(link: ManifestAssetLink): { + href: string; + crossOrigin?: AssetCrossOrigin; +}; + +// @public (undocumented) +export function resolveManifestCssLink(link: ManifestCssLink): { + href: string; + crossOrigin?: AssetCrossOrigin; + "data-tanstack-router-dev-styles"?: true; +}; + +// Warning: (ae-forgotten-export) The symbol "ParsePathParams" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type ResolveOptionalParams = { + [K in ParsePathParams['optional']]?: T | undefined; +}; + +// @public (undocumented) +export type ResolveParams = ResolveRequiredParams & ResolveOptionalParams; + +// Warning: (ae-forgotten-export) The symbol "RemoveLastSegment" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type ResolveParentPath = TTo extends '../' | '..' ? TFrom extends '' | '/' ? never : AddLeadingSlash> : TTo & `../${string}` extends never ? AddLeadingSlash> : TFrom extends '' | '/' ? never : TTo extends `../${infer ToRest}` ? ResolveParentPath, ToRest> : AddLeadingSlash>; + +// Warning: (ae-forgotten-export) The symbol "SieveCache" needs to be exported by the entry point index.d.ts +// +// @public +export function resolvePath(base: string, to: string, trailingSlash?: 'always' | 'never' | 'preserve', cache?: SieveCache): string; + +// @public (undocumented) +export type ResolveRelativePath = string extends TFrom ? TTo : string extends TTo ? TFrom : undefined extends TTo ? TFrom : TTo extends string ? TFrom extends string ? TTo extends `/${string}` ? TTo : TTo extends `..${string}` ? ResolveParentPath : TTo extends `.${string}` ? ResolveCurrentPath : AddLeadingSlash> : never : never; + +// @public (undocumented) +export type ResolveRequiredParams = { + [K in ParsePathParams['required']]: T; +}; + +// Warning: (ae-forgotten-export) The symbol "RouteByToPath" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type ResolveRoute> = TPath extends string ? TFrom extends TPath ? RouteByPath : RouteByToPath : never; + +// @public (undocumented) +export type ResolveRouteContext = Assign, ContextAsyncReturnType>; + +// @public (undocumented) +export type ResolveSearchSchema = unknown extends TSearchValidator ? TSearchValidator : TSearchValidator extends AnyStandardSchemaValidator ? NonNullable['output'] : TSearchValidator extends AnyValidatorAdapter ? TSearchValidator['types']['output'] : TSearchValidator extends AnyValidatorObj ? ResolveSearchSchemaFn : ResolveSearchSchemaFn; + +// @public (undocumented) +export type ResolveSearchSchemaFn = TSearchValidator extends (...args: any) => infer TSearchSchema ? TSearchSchema : AnySchema; + +// @public (undocumented) +export type ResolveSearchSchemaFnInput = TSearchValidator extends (input: infer TSearchSchemaInput) => any ? TSearchSchemaInput extends SearchSchemaInput ? Omit : ResolveSearchSchemaFn : AnySchema; + +// @public (undocumented) +export type ResolveSearchSchemaInput = TSearchValidator extends AnyStandardSchemaValidator ? NonNullable['input'] : TSearchValidator extends AnyValidatorAdapter ? TSearchValidator['types']['input'] : TSearchValidator extends AnyValidatorObj ? ResolveSearchSchemaFnInput : ResolveSearchSchemaFnInput; + +// @public (undocumented) +export type ResolveSearchValidatorInput = TValidator extends AnyStandardSchemaValidator ? NonNullable['input'] : TValidator extends AnyValidatorAdapter ? TValidator['types']['input'] : TValidator extends AnyValidatorObj ? ResolveSearchValidatorInputFn : ResolveSearchValidatorInputFn; + +// @public (undocumented) +export type ResolveSearchValidatorInputFn = TValidator extends (input: infer TSchemaInput) => any ? TSchemaInput extends SearchSchemaInput ? Omit : ResolveValidatorOutputFn : AnySchema; + +// @public (undocumented) +export type ResolveUseLoaderData = TStrict extends false ? AllLoaderData : Expand['types']['loaderData']>; + +// @public (undocumented) +export type ResolveUseLoaderDeps = Expand['types']['loaderDeps']>; + +// @public (undocumented) +export type ResolveUseParams = TStrict extends false ? AllParams : Expand['types']['allParams']>; + +// @public (undocumented) +export type ResolveUseSearch = TStrict extends false ? FullSearchSchema : Expand['types']['fullSearchSchema']>; + +// @public (undocumented) +export type ResolveValidatorInput = TValidator extends AnyStandardSchemaValidator ? NonNullable['input'] : TValidator extends AnyValidatorAdapter ? TValidator['types']['input'] : TValidator extends AnyValidatorObj ? ResolveValidatorInputFn : ResolveValidatorInputFn; + +// @public (undocumented) +export type ResolveValidatorInputFn = TValidator extends (input: infer TInput) => any ? TInput : undefined; + +// @public (undocumented) +export type ResolveValidatorOutput = unknown extends TValidator ? TValidator : TValidator extends AnyStandardSchemaValidator ? NonNullable['output'] : TValidator extends AnyValidatorAdapter ? TValidator['types']['output'] : TValidator extends AnyValidatorObj ? ResolveValidatorOutputFn : ResolveValidatorOutputFn; + +// @public (undocumented) +export type ResolveValidatorOutputFn = TValidator extends (...args: any) => infer TSchema ? TSchema : AnySchema; + +// @public +export function retainSearchParams(keys: Array | true): SearchMiddleware; + +// @public (undocumented) +export interface RootRoute = {}, in out TLoaderFn = undefined, in out TChildren = unknown, in out TFileRouteTypes = unknown, in out TSSR = unknown, in out TServerMiddlewares = unknown, in out THandlers = undefined> extends Route { +} + +// @public (undocumented) +export type RootRouteId = typeof rootRouteId; + +// @public +export const rootRouteId = "__root__"; + +// @public (undocumented) +export interface RootRouteOptions = {}, TLoaderFn = undefined, TSSR = unknown, TServerMiddlewares = unknown, THandlers = undefined> extends Omit, 'path' | 'id' | 'getParentRoute' | 'caseSensitive' | 'parseParams' | 'stringifyParams' | 'params'>, RootRouteOptionsExtensions { +} + +// Warning: (ae-forgotten-export) The symbol "DefaultRootRouteOptionsExtensions" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export interface RootRouteOptionsExtensions extends DefaultRootRouteOptionsExtensions { +} + +// @public (undocumented) +export interface Route, in out TLoaderFn, in out TChildren, in out TFileRouteTypes, in out TSSR, in out TServerMiddlewares, in out THandlers> extends RouteExtensions { + // (undocumented) + addChildren: RouteAddChildrenFn; + // (undocumented) + _addFileChildren: RouteAddFileChildrenFn; + // (undocumented) + _addFileTypes: RouteAddFileTypesFn; + // (undocumented) + children?: TChildren; + // (undocumented) + init: (originalIndex: number) => void; + // (undocumented) + isRoot: TParentRoute extends AnyRoute ? true : false; + // (undocumented) + lazy: RouteLazyFn>; + // (undocumented) + lazyFn?: () => Promise>>; + // (undocumented) + options: RouteOptions; + // (undocumented) + parentRoute: TParentRoute; + // (undocumented) + path: TPath; + // (undocumented) + rank: number; + redirect: RedirectFnRoute; + // (undocumented) + to: TrimPathRight; + // (undocumented) + types: RouteTypes; + // (undocumented) + update: (options: UpdatableRouteOptions) => this; +} + +// @public (undocumented) +export type RouteAddChildrenFn, in out TLoaderFn, in out TFileRouteTypes, in out TSSR, in out TServerMiddlewares, in out THandlers> = (children: Constrain | Record>) => Route; + +// @public (undocumented) +export type RouteAddFileChildrenFn, in out TLoaderFn, in out TFileRouteTypes, in out TSSR, in out TServerMiddlewares, in out THandlers> = (children: TNewChildren) => Route; + +// @public (undocumented) +export type RouteAddFileTypesFn, TLoaderFn, TChildren, TSSR, TServerMiddlewares, THandlers> = () => Route; + +// @public (undocumented) +export type RouteById = Extract[TId & keyof RoutesById], AnyRoute>; + +// @public (undocumented) +export type RouteByPath = Extract[TPath & keyof RoutesByPath], AnyRoute>; + +// @public (undocumented) +export type RouteConstraints = { + TParentRoute: AnyRoute; + TPath: string; + TFullPath: string; + TCustomId: string; + TId: string; + TSearchSchema: AnySchema; + TFullSearchSchema: AnySchema; + TParams: Record; + TAllParams: Record; + TParentContext: AnyContext; + TRouteContext: RouteContext; + TAllContext: AnyContext; + TRouterContext: AnyContext; + TChildren: unknown; + TRouteTree: AnyRoute; +}; + +// @public (undocumented) +export interface RouteContext { +} + +// @public (undocumented) +export type RouteContextFn = (ctx: RouteContextOptions) => any; + +// @public (undocumented) +export interface RouteContextOptions extends ContextOptions { + // (undocumented) + context: Expand>; + // (undocumented) + deps: TLoaderDeps; +} + +// @public (undocumented) +export type RouteContextParameter = unknown extends TParentRoute ? TRouterContext : Assign>; + +// @public (undocumented) +export interface RouteExtensions { + // (undocumented) + fullPath: TFullPath; + // (undocumented) + id: TId; +} + +// Warning: (ae-forgotten-export) The symbol "CodeRouteIds" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type RouteIds = InferFileRouteTypes extends never ? CodeRouteIds : InferFileRouteTypes['id']; + +// @public (undocumented) +export type RouteLazyFn = (lazyFn: () => Promise>) => TRoute; + +// @public (undocumented) +export type RouteLinkEntry = {}; + +// @public (undocumented) +export type RouteLoaderEntry = RouteLoaderFn | RouteLoaderObject; + +// @public (undocumented) +export type RouteLoaderFn = (match: LoaderFnContext) => any; + +// @public (undocumented) +export type RouteMask = { + routeTree: TRouteTree; + from: RoutePaths; + to?: any; + params?: any; + search?: any; + hash?: any; + state?: any; + unmaskOnReload?: boolean; +}; + +// @public (undocumented) +export interface RouteMatch extends RouteMatchExtensions { + // (undocumented) + abortController: AbortController; + // (undocumented) + cause: 'preload' | 'enter' | 'stay'; + // (undocumented) + context: TAllContext; + // (undocumented) + error: unknown; + // (undocumented) + fullPath: TFullPath; + // (undocumented) + headers?: Record; + // (undocumented) + id: string; + // (undocumented) + index: number; + // (undocumented) + invalid: boolean; + // (undocumented) + isFetching: false | 'beforeLoad' | 'loader'; + // (undocumented) + loaderData?: TLoaderData; + // (undocumented) + loaderDeps: TLoaderDeps; + // (undocumented) + _notFound?: boolean; + // (undocumented) + params: TAllParams; + // (undocumented) + paramsError: unknown; + // (undocumented) + pathname: string; + // (undocumented) + preload: boolean; + // (undocumented) + routeId: TRouteId; + // (undocumented) + search: TFullSearchSchema; + // (undocumented) + searchError: unknown; + ssr?: SSROption; + // (undocumented) + staticData: StaticDataRouteOption; + // (undocumented) + status: 'pending' | 'success' | 'error' | 'notFound'; + // (undocumented) + _strictParams: TAllParams; + // (undocumented) + _strictSearch: TFullSearchSchema; + // (undocumented) + updatedAt: number; +} + +// Warning: (ae-forgotten-export) The symbol "DefaultRouteMatchExtensions" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export interface RouteMatchExtensions extends DefaultRouteMatchExtensions { +} + +// @public (undocumented) +export type RouteOptions = {}, TLoaderFn = undefined, TRouterContext = {}, TRouteContextFn = AnyContext, TBeforeLoadFn = AnyContext, TSSR = unknown, TServerMiddlewares = unknown, THandlers = undefined> = BaseRouteOptions & UpdatableRouteOptions, NoInfer_2, NoInfer_2, NoInfer_2, NoInfer_2, NoInfer_2, NoInfer_2, NoInfer_2, NoInfer_2, NoInfer_2>; + +// @public (undocumented) +export type RoutePathOptions = { + path: TPath; +} | { + id: TCustomId; +}; + +// @public (undocumented) +export type RoutePathOptionsIntersection = { + path: TPath; + id: TCustomId; +}; + +// Warning: (ae-forgotten-export) The symbol "CodeRoutePaths" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type RoutePaths = unknown extends TRouteTree ? string : (InferFileRouteTypes extends never ? CodeRoutePaths : InferFileRouteTypes['fullPaths']) | '/'; + +// @public (undocumented) +export type RoutePrefix = string extends TPath ? RootRouteId : TPath extends string ? TPrefix extends RootRouteId ? TPath extends '/' ? '/' : `/${TrimPath}` : `${TPrefix}/${TPath}` extends '/' ? '/' : `/${TrimPathLeft<`${TrimPathRight}/${TrimPath}`>}` : never; + +// @public (undocumented) +export type RouterBatchFn = (fn: () => void) => void; + +// @public (undocumented) +export interface RouterConfig { + // (undocumented) + '~types': RouterConfigTypes; + // (undocumented) + defaultSsr: TDefaultSsr | undefined; + // (undocumented) + serializationAdapters: TSerializationAdapters; +} + +// @public (undocumented) +export interface RouterConfigOptions { + // (undocumented) + defaultSsr?: TDefaultSsr; + // (undocumented) + serializationAdapters?: TSerializationAdapters; +} + +// @public (undocumented) +export interface RouterConfigTypes { + // (undocumented) + defaultSsr: TDefaultSsr; + // (undocumented) + serializationAdapters: TSerializationAdapters; +} + +// @public (undocumented) +export type RouterConstructorOptions> = Omit, 'context' | 'serializationAdapters' | 'defaultSsr'> & RouterContextOptions; + +// Warning: (ae-forgotten-export) The symbol "InferRouterContext" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type RouterContextOptions = AnyContext extends InferRouterContext ? { + context?: InferRouterContext; +} : { + context: InferRouterContext; +}; + +// @public (undocumented) +export interface RouterCore = Record> { + // Warning: (ae-forgotten-export) The symbol "LoaderFlight" needs to be exported by the entry point index.d.ts + _flights?: Map; + // Warning: (ae-forgotten-export) The symbol "HydrationHandoff" needs to be exported by the entry point index.d.ts + _handoff?: HydrationHandoff; + _lifecycleEnd?: number; + // Warning: (ae-forgotten-export) The symbol "PendingSession" needs to be exported by the entry point index.d.ts + _pending?: PendingSession; + _preflight?: AbortController; + _preloads?: Map>; + _refreshRoute: (() => Promise) | undefined; + _rendered?: [ + offered?: Array, + settle?: (rendered: boolean) => void + ]; + _replaceRouteChunk: ((route: AnyRoute, lazyFn: AnyRoute['lazyFn']) => void) | undefined; + // Warning: (ae-forgotten-export) The symbol "ServerLoadResult" needs to be exported by the entry point index.d.ts + _serverResult?: ServerLoadResult; + // (undocumented) + shouldViewTransition?: boolean | ViewTransitionOptions; + // Warning: (ae-forgotten-export) The symbol "LoadTransaction" needs to be exported by the entry point index.d.ts + _tx?: LoadTransaction; +} + +// @public +export class RouterCore = Record> { + // @deprecated + constructor(options: RouterConstructorOptions, getStoreConfig: GetStoreConfig); + // (undocumented) + basepath: string; + // (undocumented) + batch: (fn: () => void) => void; + buildAndCommitLocation: (input?: BuildNextOptions & CommitLocationOptions) => Promise; + buildLocation: BuildLocationFn; + // Warning: (ae-forgotten-export) The symbol "RouteTreeCaches" needs to be exported by the entry point index.d.ts + // + // (undocumented) + buildRouteTree: () => RouteTreeCaches; + _cache: Map; + // (undocumented) + clearCache: ClearCacheFn; + commitLocation: CommitLocationFn; + // (undocumented) + _commitPromise: (Promise & { + resolve: () => void; + }) | undefined; + _committed: Array; + // (undocumented) + emit: EmitFn; + // (undocumented) + getMatchedRoutes: GetMatchRoutesFn; + // (undocumented) + history: TRouterHistory; + invalidate: InvalidateFn>; + // (undocumented) + isServer: boolean; + // (undocumented) + isShell(): boolean; + // (undocumented) + latestLocation: ParsedLocation>; + // (undocumented) + load: LoadFn; + // (undocumented) + loadRouteChunk: (route: AnyRoute, componentType?: 'errorComponent' | 'notFoundComponent' | false) => Promise | undefined; + // (undocumented) + matchRoute: MatchRouteFn; + // (undocumented) + matchRoutes: MatchRoutesFn; + navigate: NavigateFn; + // (undocumented) + options: PickAsRequired, 'stringifySearch' | 'parseSearch' | 'context'>; + // (undocumented) + origin: string; + parseLocation: ParseLocationFn; + // (undocumented) + readonly pathParamsDecoder?: (encoded: string) => string; + // (undocumented) + _pendingLocation?: ParsedLocation>; + // (undocumented) + preloadRoute: PreloadRouteFn; + // Warning: (ae-forgotten-export) The symbol "ProcessedTree" needs to be exported by the entry point index.d.ts + // + // (undocumented) + processedTree: ProcessedTree; + // (undocumented) + protocolAllowlist: Set; + // (undocumented) + resolvePathCache: SieveCache; + // (undocumented) + resolveRedirect: (redirect: AnyRedirect) => AnyRedirect; + // (undocumented) + rewrite?: LocationRewrite; + // (undocumented) + routesById: RoutesById; + // (undocumented) + routesByPath: RoutesByPath; + // (undocumented) + routeTree: TRouteTree; + // (undocumented) + _scroll: { + n: boolean; + h?: boolean; + e?: boolean; + s?: boolean; + r?: boolean; + }; + // Warning: (ae-forgotten-export) The symbol "ServerSsr" needs to be exported by the entry point index.d.ts + // + // (undocumented) + serverSsr?: ServerSsr; + // Warning: (ae-forgotten-export) The symbol "RouterSsrLifecycle" needs to be exported by the entry point index.d.ts + // + // (undocumented) + serverSsrLifecycle?: RouterSsrLifecycle; + // (undocumented) + setRoutes(caches: RouteTreeCaches): void; + // (undocumented) + ssr?: { + manifest: Manifest | undefined; + }; + // (undocumented) + startTransition: StartTransitionFn; + // (undocumented) + startViewTransition: (fn: () => Promise) => any; + // (undocumented) + get state(): RouterState; + // (undocumented) + stores: RouterStores; + subscribe: SubscribeFn; + // (undocumented) + subscribers: Set>; + // (undocumented) + tempLocationKey: string | undefined; + // (undocumented) + update: UpdateFn; + // (undocumented) + updateLatestLocation: () => void; +} + +// @public (undocumented) +export type RouterEvent = RouterEvents[keyof RouterEvents]; + +// @public (undocumented) +export interface RouterEvents { + // (undocumented) + onBeforeLoad: { + type: 'onBeforeLoad'; + } & NavigationEventInfo; + // Warning: (ae-forgotten-export) The symbol "NavigationEventInfo" needs to be exported by the entry point index.d.ts + // + // (undocumented) + onBeforeNavigate: { + type: 'onBeforeNavigate'; + } & NavigationEventInfo; + // (undocumented) + onBeforeRouteMount: { + type: 'onBeforeRouteMount'; + } & NavigationEventInfo; + // (undocumented) + onLoad: { + type: 'onLoad'; + } & NavigationEventInfo; + // (undocumented) + onRendered: { + type: 'onRendered'; + } & NavigationEventInfo; + // (undocumented) + onResolved: { + type: 'onResolved'; + } & NavigationEventInfo; +} + +// @public (undocumented) +export type RouterListener = { + eventType: TRouterEvent['type']; + fn: ListenerFn; +}; + +// @public (undocumented) +export type RouterManagedInlineCssTag = RouterManagedStyleTag & { + inlineCss: true; +}; + +// @public (undocumented) +export type RouterManagedLinkTag = { + tag: 'link'; + attrs?: Record; + children?: never; +}; + +// @public (undocumented) +export type RouterManagedMetaTag = { + tag: 'meta'; + attrs?: Record; + children?: never; +}; + +// @public (undocumented) +export type RouterManagedScriptTag = { + tag: 'script'; + attrs?: Record; + children?: string; +}; + +// @public (undocumented) +export type RouterManagedStyleTag = { + tag: 'style'; + attrs?: Record; + children?: string; + inlineCss?: true; +}; + +// @public (undocumented) +export type RouterManagedTag = RouterManagedTitleTag | RouterManagedMetaTag | RouterManagedLinkTag | RouterManagedScriptTag | RouterManagedStyleTag; + +// @public (undocumented) +export type RouterManagedTitleTag = { + tag: 'title'; + attrs?: Record; + children: string; +}; + +// @public (undocumented) +export interface RouterOptions extends RouterOptionsExtensions { + // (undocumented) + additionalContext?: any; + basepath?: string; + caseSensitive?: boolean; + context?: InferRouterContext; + defaultGcTime?: number; + defaultHashScrollIntoView?: boolean | ScrollIntoViewOptions; + defaultPendingMinMs?: number; + defaultPendingMs?: number; + defaultPreload?: false | 'intent' | 'viewport' | 'render'; + defaultPreloadDelay?: number; + defaultPreloadGcTime?: number; + defaultPreloadStaleTime?: number; + // (undocumented) + defaultRemountDeps?: DefaultRemountDepsFn; + defaultSsr?: SSROption; + defaultStaleReloadMode?: LoaderStaleReloadMode; + defaultStaleTime?: number; + defaultStructuralSharing?: TDefaultStructuralSharingOption; + defaultViewTransition?: boolean | ViewTransitionOptions; + dehydrate?: () => Awaitable>>; + disableGlobalCatchBoundary?: boolean; + getScrollRestorationKey?: (location: ParsedLocation) => string; + history?: TRouterHistory; + hydrate?: (dehydrated: TDehydrated) => Awaitable; + isPrerendering?: boolean; + isServer?: boolean; + isShell?: boolean; + notFoundMode?: 'root' | 'fuzzy'; + // @deprecated + notFoundRoute?: AnyRoute; + origin?: string; + parseSearch?: SearchParser; + readonly pathParamsAllowedCharacters?: ReadonlyArray<';' | ':' | '@' | '&' | '=' | '+' | '$' | ','>; + protocolAllowlist?: Array; + rewrite?: LocationRewrite; + routeMasks?: Array>; + routeTree?: TRouteTree; + scrollRestoration?: boolean | ((opts: { + location: ParsedLocation; + }) => boolean); + scrollRestorationBehavior?: ScrollBehavior; + scrollToTopSelectors?: Array Element | null | undefined)>; + // (undocumented) + search?: { + strict?: boolean; + }; + // (undocumented) + serializationAdapters?: ReadonlyArray; + // (undocumented) + ssr?: { + nonce?: string; + }; + stringifySearch?: SearchSerializer; + trailingSlash?: TTrailingSlashOption; + unmaskOnReload?: boolean; +} + +// Warning: (ae-forgotten-export) The symbol "DefaultRouterOptionsExtensions" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export interface RouterOptionsExtensions extends DefaultRouterOptionsExtensions { +} + +// @public (undocumented) +export interface RouterReadableStore { + // (undocumented) + get: () => TValue; +} + +// @public (undocumented) +export interface RouterState { + // (undocumented) + isLoading: boolean; + // (undocumented) + location: ParsedLocation>; + // (undocumented) + matches: Array; + // (undocumented) + resolvedLocation?: ParsedLocation>; + // (undocumented) + status: 'pending' | 'idle'; +} + +// @public (undocumented) +export interface RouterStores { + // (undocumented) + __store: RouterReadableStore>; + // Warning: (ae-forgotten-export) The symbol "MatchStore" needs to be exported by the entry point index.d.ts + // + // (undocumented) + byRoute: Map; + getMatchStore: (routeId: string) => RouterReadableStore; + // (undocumented) + ids: RouterWritableStore>; + // (undocumented) + location: RouterWritableStore>>; + // Warning: (ae-forgotten-export) The symbol "ReadableStore" needs to be exported by the entry point index.d.ts + // + // (undocumented) + matches: ReadableStore>; + // (undocumented) + resolvedLocation: RouterWritableStore> | undefined>; + // (undocumented) + setMatches: (nextMatches: Array) => void; + // (undocumented) + status: RouterWritableStore['status']>; +} + +// @public (undocumented) +export interface RouterWritableStore extends RouterReadableStore { + // (undocumented) + set: ((updater: (prev: TValue) => TValue) => void) & ((value: TValue) => void); +} + +// Warning: (ae-forgotten-export) The symbol "CodeRoutesById" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type RoutesById = InferFileRouteTypes extends never ? CodeRoutesById : InferFileRouteTypes['fileRoutesById']; + +// Warning: (ae-forgotten-export) The symbol "CodeRoutesByPath" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type RoutesByPath = InferFileRouteTypes extends never ? CodeRoutesByPath : InferFileRouteTypes['fileRoutesByFullPath']; + +// Warning: (ae-forgotten-export) The symbol "FileRouteToPath" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type RouteToPath = unknown extends TRouter ? string : InferFileRouteTypes extends never ? CodeRouteToPath : FileRouteToPath; + +// @public (undocumented) +export interface RouteTypes { + // (undocumented) + allContext: ResolveAllContext; + // (undocumented) + allParams: ResolveAllParamsFromParent; + // Warning: (ae-forgotten-export) The symbol "ResolveAllSSR" needs to be exported by the entry point index.d.ts + // + // (undocumented) + allSsr: ResolveAllSSR; + // (undocumented) + beforeLoadFn: TBeforeLoadFn; + // (undocumented) + children: TChildren; + // (undocumented) + customId: TCustomId; + // (undocumented) + fileRouteTypes: TFileRouteTypes; + // (undocumented) + fullPath: TFullPath; + // (undocumented) + fullSearchSchema: ResolveFullSearchSchema; + // (undocumented) + fullSearchSchemaInput: ResolveFullSearchSchemaInput; + // (undocumented) + id: TId; + // (undocumented) + loaderData: ResolveLoaderData; + // (undocumented) + loaderDeps: TLoaderDeps; + // (undocumented) + params: TParams; + // (undocumented) + parentRoute: TParentRoute; + // (undocumented) + path: TPath; + // (undocumented) + routeContext: ResolveRouteContext; + // (undocumented) + routeContextFn: TRouteContextFn; + // (undocumented) + routerContext: TRouterContext; + // (undocumented) + searchSchema: ResolveValidatorOutput; + // (undocumented) + searchSchemaInput: ResolveSearchValidatorInput; + // (undocumented) + searchValidator: TSearchValidator; + // Warning: (ae-forgotten-export) The symbol "ResolveSSR" needs to be exported by the entry point index.d.ts + // + // (undocumented) + ssr: ResolveSSR; + // (undocumented) + to: TrimPathRight; +} + +// @public (undocumented) +export type RouteTypesById = RouteById['types']; + +// @public (undocumented) +export type ScriptFormat = 'module' | 'iife'; + +// @public (undocumented) +export type ScrollRestorationEntry = { + scrollX: number; + scrollY: number; +}; + +// @public (undocumented) +export type ScrollRestorationOptions = { + getKey?: (location: ParsedLocation) => string; + scrollBehavior?: ScrollToOptions['behavior']; +}; + +// @public (undocumented) +export type SearchFilter = (prev: TInput) => TResult; + +// @public (undocumented) +export type SearchMiddleware = (ctx: SearchMiddlewareContext) => TSearchSchema; + +// @public (undocumented) +export type SearchMiddlewareContext = { + search: TSearchSchema; + next: (newSearch: TSearchSchema) => TSearchSchema; + meta?: SearchMiddlewareMeta; +}; + +// @public +export class SearchParamError extends Error { +} + +// Warning: (ae-forgotten-export) The symbol "MakeRequiredSearchParams" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type SearchParamOptions = IsRequired extends never ? MakeOptionalSearchParams : MakeRequiredSearchParams; + +// @public (undocumented) +export type SearchParser = (searchStr: string) => Record; + +// @public (undocumented) +export type SearchSchemaInput = { + __TSearchSchemaInput__: 'TSearchSchemaInput'; +}; + +// @public (undocumented) +export type SearchSerializer = (searchObj: Record) => string; + +// @public (undocumented) +export type SearchValidator = ValidatorObj | ValidatorFn | ValidatorAdapter | StandardSchemaValidator | undefined; + +// @public (undocumented) +export type Serializable = SerializableExtensions[keyof SerializableExtensions]; + +// @public (undocumented) +export interface SerializableExtensions extends DefaultSerializable { +} + +// @public (undocumented) +export interface SerializationAdapter> { + // Warning: (ae-forgotten-export) The symbol "SerializationAdapterTypes" needs to be exported by the entry point index.d.ts + // + // (undocumented) + '~types': SerializationAdapterTypes; + // (undocumented) + extends?: TExtendsAdapters; + // (undocumented) + fromSerializable: (value: TOutput) => TInput; + // (undocumented) + key: string; + // (undocumented) + test: (value: unknown) => value is TInput; + // (undocumented) + toSerializable: (value: TInput) => TOutput; +} + +// @public (undocumented) +export interface SerializationError { + // (undocumented) + [SERIALIZATION_ERROR]: TMessage; +} + +// Warning: (ae-forgotten-export) The symbol "DefaultSerializerExtensions" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export interface SerializerExtensions extends DefaultSerializerExtensions { +} + +// @public (undocumented) +export type ServerManifest = { + scriptFormat?: ScriptFormat; + inlineCss?: ServerManifestInlineCss; + routes: Record; +}; + +// @public (undocumented) +export type ServerManifestInlineCss = { + styles: Record; + templates?: Record; +}; + +// @public (undocumented) +export type ServerManifestRoute = ManifestRoute; + +// @public (undocumented) +export function setupScrollRestoration(router: AnyRouter, force?: boolean): void; + +// @public (undocumented) +export interface SsrContextOptions { + // (undocumented) + location: ParsedLocation; + // Warning: (ae-forgotten-export) The symbol "MakePreValidationErrorHandlingRouteMatchUnion" needs to be exported by the entry point index.d.ts + // + // (undocumented) + matches: Array; + // (undocumented) + params: { + status: 'success'; + value: Expand>; + } | { + status: 'error'; + error: unknown; + }; + // (undocumented) + search: { + status: 'success'; + value: Expand>; + } | { + status: 'error'; + error: unknown; + }; +} + +// @public (undocumented) +export type SSROption = boolean | 'data-only'; + +// @public (undocumented) +export interface StandardSchemaValidator { + // (undocumented) + readonly '~standard': StandardSchemaValidatorProps; +} + +// @public (undocumented) +export interface StandardSchemaValidatorProps { + // (undocumented) + readonly types?: StandardSchemaValidatorTypes | undefined; + // (undocumented) + readonly validate: AnyStandardSchemaValidate; +} + +// @public (undocumented) +export interface StandardSchemaValidatorTypes { + // (undocumented) + readonly input: TInput; + // (undocumented) + readonly output: TOutput; +} + +// @public (undocumented) +export type StartTransitionFn = (fn: () => void, expected: Array) => Promise; + +// @public (undocumented) +export interface StaticDataRouteOption { +} + +// @public (undocumented) +export const storageKey = "tsr-scroll-restoration-v1_3"; + +// @public (undocumented) +export type StrictOrFrom = TStrict extends false ? { + from?: never; + strict: TStrict; +} : { + from: ConstrainLiteral>; + strict?: TStrict; +}; + +// @public (undocumented) +export type StringifyParamsFn = (params: TParams) => ResolveParams; + +// @public +export function stringifySearchWith(stringify: (search: any) => string, parser?: (str: string) => any): (search: Record) => string; + +// @public (undocumented) +export type StringLiteral = T extends string ? string extends T ? string : T : never; + +// @public +export function stripSearchParams>, const TValues = Partial> | Array, const TInput = IsRequiredParams extends never ? TValues | true : TValues>(input: NoInfer_2): SearchMiddleware; + +// @public (undocumented) +export type SubscribeFn = (eventType: TType, fn: ListenerFn) => () => void; + +// @public (undocumented) +export type ThrowConstraint = TStrict extends false ? (TThrow extends true ? never : TThrow) : TThrow; + +// @public (undocumented) +export type ThrowOrOptional = TThrow extends true ? T : T | undefined; + +// @public (undocumented) +export type Timeout = ReturnType; + +// @public (undocumented) +export type ToMaskOptions = ToSubOptions & { + unmaskOnReload?: boolean; +}; + +// @public (undocumented) +export type ToOptions = ToSubOptions & MaskOptions; + +// @public (undocumented) +export type ToPathOption = ConstrainLiteral extends string ? NoInfer_2 : '', NoInfer_2 & string>>; + +// @public (undocumented) +export type ToSubOptions = ToSubOptionsProps & SearchParamOptions & PathParamOptions; + +// Warning: (ae-forgotten-export) The symbol "MakeToRequired" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type ToSubOptionsProps | string = string, TTo extends string | undefined = '.'> = MakeToRequired & { + hash?: true | Updater; + state?: true | NonNullableUpdater; + from?: FromPathOption & {}; + unsafeRelative?: 'path'; +}; + +// @public (undocumented) +export type TrailingSlashOption = (typeof trailingSlashOptions)[keyof typeof trailingSlashOptions]; + +// @public (undocumented) +export type TrailingSlashOptionByRouter = TrailingSlashOption extends TRouter['options']['trailingSlash'] ? 'never' : NonNullable; + +// @public +export const trailingSlashOptions: { + readonly always: "always"; + readonly never: "never"; + readonly preserve: "preserve"; +}; + +// @public (undocumented) +export type TrimPath = '' extends T ? '' : TrimPathRight>; + +// @public +export function trimPath(path: string): string; + +// @public (undocumented) +export type TrimPathLeft = T extends `${RootRouteId}/${infer U}` ? TrimPathLeft : T extends `/${infer U}` ? TrimPathLeft : T; + +// @public +export function trimPathLeft(path: string): string; + +// @public (undocumented) +export type TrimPathRight = T extends '/' ? '/' : T extends `${infer U}/` ? TrimPathRight : T; + +// @public +export function trimPathRight(path: string): string; + +// @public +export const TSR_DEFERRED_PROMISE: unique symbol; + +// Warning: (ae-forgotten-export) The symbol "TSR_SERIALIZABLE_2" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type TSR_SERIALIZABLE = typeof TSR_SERIALIZABLE_2; + +// @public (undocumented) +export type TsrSerializable = { + [TSR_SERIALIZABLE_2]: true; +}; + +// @public +export type UnionToIntersection = (T extends any ? (arg: T) => any : never) extends (arg: infer T) => any ? T : never; + +// @public (undocumented) +export interface UpdatableRouteOptions extends UpdatableStaticRouteOption, UpdatableRouteOptionsExtensions { + caseSensitive?: boolean; + // (undocumented) + codeSplitGroupings?: Array>; + // (undocumented) + gcTime?: number; + // (undocumented) + head?: (ctx: AssetFnContextOptions) => Awaitable<{ + links?: AnyRouteMatch['links']; + scripts?: AnyRouteMatch['headScripts']; + meta?: AnyRouteMatch['meta']; + styles?: AnyRouteMatch['styles']; + }>; + // Warning: (ae-forgotten-export) The symbol "AssetFnContextOptions" needs to be exported by the entry point index.d.ts + // + // (undocumented) + headers?: (ctx: AssetFnContextOptions) => Awaitable | undefined>; + // (undocumented) + onCatch?: (error: ErrorBoundaryTypes['error']) => void; + // (undocumented) + onEnter?: (match: RouteMatch, ResolveFullSearchSchema, ResolveLoaderData, ResolveAllContext, TLoaderDeps>) => void; + // (undocumented) + onError?: (err: any) => void; + // (undocumented) + onLeave?: (match: RouteMatch, ResolveFullSearchSchema, ResolveLoaderData, ResolveAllContext, TLoaderDeps>) => void; + // (undocumented) + onStay?: (match: RouteMatch, ResolveFullSearchSchema, ResolveLoaderData, ResolveAllContext, TLoaderDeps>) => void; + // (undocumented) + pendingMinMs?: number; + // (undocumented) + pendingMs?: number; + // @deprecated (undocumented) + postSearchFilters?: Array>>; + // (undocumented) + preload?: boolean; + // (undocumented) + preloadGcTime?: number; + // (undocumented) + preloadStaleTime?: number; + // @deprecated (undocumented) + preSearchFilters?: Array>>; + // (undocumented) + scripts?: (ctx: AssetFnContextOptions) => Awaitable; + // (undocumented) + search?: { + middlewares?: Array>>; + }; + // (undocumented) + staleTime?: number; + wrapInSuspense?: boolean; +} + +// Warning: (ae-forgotten-export) The symbol "DefaultUpdatableRouteOptionsExtensions" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export interface UpdatableRouteOptionsExtensions extends DefaultUpdatableRouteOptionsExtensions { +} + +// Warning: (ae-forgotten-export) The symbol "OptionalStaticDataRouteOption" needs to be exported by the entry point index.d.ts +// Warning: (ae-forgotten-export) The symbol "RequiredStaticDataRouteOption" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type UpdatableStaticRouteOption = {} extends StaticDataRouteOption ? OptionalStaticDataRouteOption : RequiredStaticDataRouteOption; + +// @public (undocumented) +export type UpdateFn> = (newOptions: Omit, 'pathParamsAllowedCharacters'>) => void; + +// @public (undocumented) +export type Updater = TResult | ((prev?: TPrevious) => TResult); + +// @public (undocumented) +export type UseLoaderDataResult = unknown extends TSelected ? ResolveUseLoaderData : TSelected; + +// @public (undocumented) +export type UseLoaderDepsResult = unknown extends TSelected ? ResolveUseLoaderDeps : TSelected; + +// @public (undocumented) +export type UseNavigateResult = (input: NavigateOptions) => Promise; + +// @public (undocumented) +export type UseParamsResult = unknown extends TSelected ? ResolveUseParams : TSelected; + +// @public (undocumented) +export interface UseRouteContextBaseOptions { + // Warning: (ae-forgotten-export) The symbol "ResolveUseRouteContext" needs to be exported by the entry point index.d.ts + // + // (undocumented) + select?: (search: ResolveUseRouteContext) => TSelected; +} + +// @public (undocumented) +export type UseRouteContextOptions = StrictOrFrom & UseRouteContextBaseOptions; + +// @public (undocumented) +export type UseRouteContextResult = unknown extends TSelected ? ResolveUseRouteContext : TSelected; + +// @public (undocumented) +export type UseSearchResult = unknown extends TSelected ? ResolveUseSearch : TSelected; + +// @public (undocumented) +export type ValidateFromPath = FromPathOption; + +// @public (undocumented) +export type ValidateId = ConstrainLiteral>; + +// @public (undocumented) +export type ValidateJSON = ((...args: Array) => any) extends T ? unknown extends T ? never : 'Function is not serializable' : { + [K in keyof T]: ValidateJSON; +}; + +// @public (undocumented) +export type ValidateNavigateOptions = Constrain, InferTo, InferMaskFrom, InferMaskTo>>; + +// @public (undocumented) +export type ValidateNavigateOptionsArray = ReadonlyArray, TDefaultFrom extends string = string> = { + [K in keyof TOptions]: ValidateNavigateOptions; +}; + +// @public (undocumented) +export type ValidateParams = PathParamOptions; + +// @public (undocumented) +export type ValidateRedirectOptions = Constrain, InferTo, InferMaskFrom, InferMaskTo>>; + +// @public (undocumented) +export type ValidateRedirectOptionsArray = ReadonlyArray, TDefaultFrom extends string = string> = { + [K in keyof TOptions]: ValidateRedirectOptions; +}; + +// @public (undocumented) +export type ValidateSearch = SearchParamOptions; + +// Warning: (ae-forgotten-export) The symbol "RegisteredReadableStream" needs to be exported by the entry point index.d.ts +// Warning: (ae-forgotten-export) The symbol "ValidateSerializableArray" needs to be exported by the entry point index.d.ts +// Warning: (ae-forgotten-export) The symbol "ValidateSerializablePromise" needs to be exported by the entry point index.d.ts +// Warning: (ae-forgotten-export) The symbol "ValidateReadableStream" needs to be exported by the entry point index.d.ts +// Warning: (ae-forgotten-export) The symbol "ValidateSerializableSet" needs to be exported by the entry point index.d.ts +// Warning: (ae-forgotten-export) The symbol "ValidateSerializableMap" needs to be exported by the entry point index.d.ts +// Warning: (ae-forgotten-export) The symbol "ValidateSerializableAsyncGenerator" needs to be exported by the entry point index.d.ts +// Warning: (ae-forgotten-export) The symbol "ValidateSerializableMapped" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type ValidateSerializable = T extends TSerializable ? T : T extends (...args: Array) => any ? SerializationError<'Function may not be serializable'> : T extends RegisteredReadableStream ? SerializationError<'JSX is not be serializable'> : T extends ReadonlyArray ? ValidateSerializableArray : T extends Promise ? ValidateSerializablePromise : T extends ReadableStream ? ValidateReadableStream : T extends Set ? ValidateSerializableSet : T extends Map ? ValidateSerializableMap : T extends AsyncGenerator ? ValidateSerializableAsyncGenerator : T extends object ? ValidateSerializableMapped : SerializationError<'Type may not be serializable'>; + +// @public (undocumented) +export type ValidateSerializableInput = ValidateSerializable>; + +// @public (undocumented) +export type ValidateToPath = ToPathOption; + +// @public (undocumented) +export type ValidateUseParamsResult = Constrain, InferStrict, InferSelected>>; + +// @public (undocumented) +export type ValidateUseSearchResult = UseSearchResult, InferStrict, InferSelected>; + +// @public (undocumented) +export type Validator = ValidatorObj | ValidatorFn | ValidatorAdapter | StandardSchemaValidator | undefined; + +// @public (undocumented) +export interface ValidatorAdapter { + // (undocumented) + parse: (input: unknown) => TOutput; + // (undocumented) + types: { + input: TInput; + output: TOutput; + }; +} + +// @public (undocumented) +export type ValidatorFn = (input: TInput) => TOutput; + +// @public (undocumented) +export interface ValidatorObj { + // (undocumented) + parse: ValidatorFn; +} + +// @public (undocumented) +export interface ViewTransitionOptions { + // (undocumented) + types: Array | ((locationChangeInfo: { + fromLocation?: ParsedLocation; + toLocation: ParsedLocation; + pathChanged: boolean; + hrefChanged: boolean; + hashChanged: boolean; + }) => Array | false); +} + +// @public (undocumented) +export type WithoutEmpty = T extends any ? ({} extends T ? never : T) : never; + +// Warnings were encountered during analysis: +// +// dist/esm/route.d.ts:45:5 - (ae-forgotten-export) The symbol "SearchMiddlewareMeta" needs to be exported by the entry point index.d.ts +// dist/esm/route.d.ts:89:9 - (ae-forgotten-export) The symbol "ValidateParsedParams" needs to be exported by the entry point index.d.ts +// dist/esm/route.d.ts:129:5 - (ae-forgotten-export) The symbol "LdJsonObject" needs to be exported by the entry point index.d.ts + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/router-core/api/isServer/client.api.md b/packages/router-core/api/isServer/client.api.md new file mode 100644 index 0000000000..5cd8cae5bb --- /dev/null +++ b/packages/router-core/api/isServer/client.api.md @@ -0,0 +1,22 @@ +## API Report File for "@tanstack/router-core" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/isServer/client.d.ts`. Regenerate with `node scripts/api-report.mjs packages/router-core` after a build. +> +> Imported as: +> +> - `@tanstack/router-core/isServer` (`browser` > `import`) +> - `@tanstack/router-core/isServer` (`import`) + +```ts + +// @public (undocumented) +export const isServer = false; + +// @public (undocumented) +export const loadServerRoute: never; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/router-core/api/isServer/development.api.md b/packages/router-core/api/isServer/development.api.md new file mode 100644 index 0000000000..9656287523 --- /dev/null +++ b/packages/router-core/api/isServer/development.api.md @@ -0,0 +1,30 @@ +## API Report File for "@tanstack/router-core" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/isServer/development.d.ts`. Regenerate with `node scripts/api-report.mjs packages/router-core` after a build. +> +> Imported as: +> +> - `@tanstack/router-core/isServer` (`development` > `import`) + +```ts + +import { HistoryAction } from '@tanstack/history'; +import { HistoryLocation } from '@tanstack/history'; +import { HistoryState } from '@tanstack/history'; +import { ParsedHistoryState } from '@tanstack/history'; +import { RouterHistory } from '@tanstack/history'; + +// @public (undocumented) +export const isServer: boolean | undefined; + +// Warning: (ae-forgotten-export) The symbol "AnyRouter" needs to be exported by the entry point development.d.ts +// Warning: (ae-forgotten-export) The symbol "ServerLoadOptions" needs to be exported by the entry point development.d.ts +// +// @public (undocumented) +export function loadServerRoute(router: AnyRouter, opts?: ServerLoadOptions): Promise; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/router-core/api/isServer/server.api.md b/packages/router-core/api/isServer/server.api.md new file mode 100644 index 0000000000..1b41b6b7f4 --- /dev/null +++ b/packages/router-core/api/isServer/server.api.md @@ -0,0 +1,34 @@ +## API Report File for "@tanstack/router-core" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/isServer/server.d.ts`. Regenerate with `node scripts/api-report.mjs packages/router-core` after a build. +> +> Imported as: +> +> - `@tanstack/router-core/isServer` (`workerd` > `import`) +> - `@tanstack/router-core/isServer` (`worker` > `import`) +> - `@tanstack/router-core/isServer` (`deno` > `import`) +> - `@tanstack/router-core/isServer` (`node` > `import`) +> - `@tanstack/router-core/isServer` (`bun` > `import`) + +```ts + +import { HistoryAction } from '@tanstack/history'; +import { HistoryLocation } from '@tanstack/history'; +import { HistoryState } from '@tanstack/history'; +import { ParsedHistoryState } from '@tanstack/history'; +import { RouterHistory } from '@tanstack/history'; + +// @public (undocumented) +export const isServer: boolean | undefined; + +// Warning: (ae-forgotten-export) The symbol "AnyRouter" needs to be exported by the entry point server.d.ts +// Warning: (ae-forgotten-export) The symbol "ServerLoadOptions" needs to be exported by the entry point server.d.ts +// +// @public (undocumented) +export function loadServerRoute(router: AnyRouter, opts?: ServerLoadOptions): Promise; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/router-core/api/scroll-restoration-script/client.api.md b/packages/router-core/api/scroll-restoration-script/client.api.md new file mode 100644 index 0000000000..cbb7f12506 --- /dev/null +++ b/packages/router-core/api/scroll-restoration-script/client.api.md @@ -0,0 +1,26 @@ +## API Report File for "@tanstack/router-core" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/scroll-restoration-script/client.d.ts`. Regenerate with `node scripts/api-report.mjs packages/router-core` after a build. +> +> Imported as: +> +> - `@tanstack/router-core/scroll-restoration-script` (`browser` > `import`) + +```ts + +import { HistoryAction } from '@tanstack/history'; +import { HistoryLocation } from '@tanstack/history'; +import { HistoryState } from '@tanstack/history'; +import { ParsedHistoryState } from '@tanstack/history'; +import { RouterHistory } from '@tanstack/history'; + +// Warning: (ae-forgotten-export) The symbol "AnyRouter" needs to be exported by the entry point client.d.ts +// +// @public (undocumented) +export function getScrollRestorationScriptForRouter(_router: AnyRouter): null; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/router-core/api/scroll-restoration-script/server.api.md b/packages/router-core/api/scroll-restoration-script/server.api.md new file mode 100644 index 0000000000..c21a034134 --- /dev/null +++ b/packages/router-core/api/scroll-restoration-script/server.api.md @@ -0,0 +1,26 @@ +## API Report File for "@tanstack/router-core" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/scroll-restoration-script/server.d.ts`. Regenerate with `node scripts/api-report.mjs packages/router-core` after a build. +> +> Imported as: +> +> - `@tanstack/router-core/scroll-restoration-script` (`import`) + +```ts + +import { HistoryAction } from '@tanstack/history'; +import { HistoryLocation } from '@tanstack/history'; +import { HistoryState } from '@tanstack/history'; +import { ParsedHistoryState } from '@tanstack/history'; +import { RouterHistory } from '@tanstack/history'; + +// Warning: (ae-forgotten-export) The symbol "AnyRouter" needs to be exported by the entry point server.d.ts +// +// @public (undocumented) +export function getScrollRestorationScriptForRouter(router: AnyRouter): string | null; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/router-core/api/ssr/client.api.md b/packages/router-core/api/ssr/client.api.md new file mode 100644 index 0000000000..d252499841 --- /dev/null +++ b/packages/router-core/api/ssr/client.api.md @@ -0,0 +1,124 @@ +## API Report File for "@tanstack/router-core" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/ssr/client.d.ts`. Regenerate with `node scripts/api-report.mjs packages/router-core` after a build. +> +> Imported as: +> +> - `@tanstack/router-core/ssr/client` (`import`) + +```ts + +import { HistoryAction } from '@tanstack/history'; +import { HistoryLocation } from '@tanstack/history'; +import { HistoryState } from '@tanstack/history'; +import { OutgoingHttpHeaders } from 'node:http2'; +import { ParsedHistoryState } from '@tanstack/history'; +import { Plugin as Plugin_2 } from 'seroval'; +import { PluginInfo } from 'seroval'; +import { RouterHistory } from '@tanstack/history'; +import { SerovalNode } from 'seroval'; + +// Warning: (ae-forgotten-export) The symbol "SerializationAdapter" needs to be exported by the entry point client.d.ts +// +// @public (undocumented) +export type AnySerializationAdapter = SerializationAdapter; + +// @public +export function createDefaultSerovalPlugins(signal?: AbortSignal): Array>; + +// Warning: (ae-forgotten-export) The symbol "RawStreamRPCNode" needs to be exported by the entry point client.d.ts +// +// @public +export function createRawStreamDeserializePlugin(getStream: (id: number) => ReadableStream): Plugin_2>, RawStreamRPCNode>; + +// @public +export const defaultSerovalDeserializerPlugins: Array>; + +// @public (undocumented) +export const defaultSerovalPlugins: Plugin_2[]; + +// @public (undocumented) +export interface DehydratedMatch { + // (undocumented) + e?: MakeRouteMatch['error']; + // (undocumented) + g?: true; + // Warning: (ae-forgotten-export) The symbol "MakeRouteMatch" needs to be exported by the entry point client.d.ts + // + // (undocumented) + i: MakeRouteMatch['id']; + // (undocumented) + l?: MakeRouteMatch['loaderData']; + // (undocumented) + s: MakeRouteMatch['status']; + // (undocumented) + ssr?: MakeRouteMatch['ssr']; + // (undocumented) + u: MakeRouteMatch['updatedAt']; +} + +// @public (undocumented) +export interface DehydratedRouter { + // (undocumented) + dehydratedData?: any; + // Warning: (ae-forgotten-export) The symbol "Manifest" needs to be exported by the entry point client.d.ts + // + // (undocumented) + manifest: Manifest | undefined; + // (undocumented) + matches: Array; +} + +// Warning: (ae-forgotten-export) The symbol "AnyRouter" needs to be exported by the entry point client.d.ts +// +// @public (undocumented) +export function hydrate(router: AnyRouter): Promise; + +// @public @deprecated (undocumented) +export function json(payload: TData, init?: ResponseInit): JsonResponse; + +// @public @deprecated (undocumented) +export interface JsonResponse extends Response { + // (undocumented) + json: () => Promise; +} + +// Warning: (ae-forgotten-export) The symbol "AdapterNode" needs to be exported by the entry point client.d.ts +// +// @public +export function makeSerovalPlugin(serializationAdapter: AnySerializationAdapter): Plugin_2; + +// Warning: (ae-forgotten-export) The symbol "AnyHeaders" needs to be exported by the entry point client.d.ts +// +// @public (undocumented) +export function mergeHeaders(...headers: Array): Headers; + +// @public (undocumented) +export interface TsrSsrGlobal { + // (undocumented) + buffer: Array<() => void>; + // (undocumented) + c: () => void; + // (undocumented) + e: () => void; + // (undocumented) + h: () => void; + // (undocumented) + hydrated?: boolean; + // (undocumented) + initialized?: boolean; + // (undocumented) + p: (script: () => void) => void; + // (undocumented) + router?: DehydratedRouter; + // (undocumented) + streamEnded?: boolean; + // (undocumented) + t?: Map any>; +} + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/router-core/api/ssr/server.api.md b/packages/router-core/api/ssr/server.api.md new file mode 100644 index 0000000000..cad5ab1184 --- /dev/null +++ b/packages/router-core/api/ssr/server.api.md @@ -0,0 +1,162 @@ +## API Report File for "@tanstack/router-core" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/ssr/server.d.ts`. Regenerate with `node scripts/api-report.mjs packages/router-core` after a build. +> +> Imported as: +> +> - `@tanstack/router-core/ssr/server` (`import`) + +```ts + +import { HistoryAction } from '@tanstack/history'; +import { HistoryLocation } from '@tanstack/history'; +import { HistoryState } from '@tanstack/history'; +import { ParsedHistoryState } from '@tanstack/history'; +import { Plugin as Plugin_2 } from 'seroval'; +import { PluginInfo } from 'seroval'; +import { Readable } from 'node:stream'; +import { ReadableStream as ReadableStream_2 } from 'node:stream/web'; +import { RouterHistory } from '@tanstack/history'; +import { SerovalNode } from 'seroval'; + +// @public (undocumented) +export function attachRouterServerSsrUtils(input: { + router: AnyRouter; + manifest: ServerManifest | undefined; + getRequestAssets?: () => ManifestRouteAssets | undefined; +}): void; + +// @public (undocumented) +export function bindSsrResponseToRequest(router: AnyRouter | undefined, result: HandlerCallbackResult, signal: AbortSignal): SsrResponse; + +// Warning: (ae-forgotten-export) The symbol "OnRawStreamCallback" needs to be exported by the entry point server.d.ts +// Warning: (ae-forgotten-export) The symbol "RawStream" needs to be exported by the entry point server.d.ts +// Warning: (ae-forgotten-export) The symbol "RawStreamRPCNode" needs to be exported by the entry point server.d.ts +// +// @public +export function createRawStreamRPCPlugin(onRawStream: OnRawStreamCallback): Plugin_2; + +// @public (undocumented) +export function createRequestHandler(input: { + createRouter: () => TRouter; + request: Request; + getRouterManifest?: () => ServerManifest | Promise; +}): RequestHandler; + +// @public (undocumented) +export function createSsrStreamResponse(router: AnyRouter, response: Response): Extract; + +// @public +export const defaultSerovalDeserializerPlugins: Array>; + +// @public (undocumented) +export function defineHandlerCallback(handler: HandlerCallback): HandlerCallback; + +// @public (undocumented) +export function disposeSsrResponse(result: HandlerCallbackResult, reason?: unknown): undefined; + +// @public (undocumented) +export function getNormalizedURL(url: string | URL, base?: string | URL): { + url: URL; + handledProtocolRelativeURL: boolean; +}; + +// @public +export function getOrigin(request: Request): string; + +// @public +export function getSsrStatus(router: AnyRouter): 500 | 200 | 404; + +// @public (undocumented) +export interface HandlerCallback { + // (undocumented) + (ctx: { + request: Request; + router: TRouter; + responseHeaders: Headers; + }): HandlerCallbackResult | Promise; +} + +// @public (undocumented) +export type HandlerCallbackResult = Response | SsrResponse; + +// @public (undocumented) +export function isSsrResponse(value: unknown): value is SsrResponse; + +// Warning: (ae-forgotten-export) The symbol "AnySerializationAdapter" needs to be exported by the entry point server.d.ts +// Warning: (ae-forgotten-export) The symbol "AdapterNode" needs to be exported by the entry point server.d.ts +// +// @public +export function makeSsrSerovalPlugin(serializationAdapter: AnySerializationAdapter, tracker?: { + didRun: boolean; +}): Plugin_2; + +// @public (undocumented) +export function normalizeSsrResponse(result: HandlerCallbackResult): SsrResponse; + +// @public (undocumented) +export function renderSsrHtmlResponse(input: { + router: AnyRouter; + responseHeaders: Headers; + render: () => string | Promise; +}): Promise; + +// @public (undocumented) +export function replaceSsrResponse(result: HandlerCallbackResult, response: Response, reason?: unknown): Extract; + +// @public (undocumented) +export type RequestHandler = (cb: HandlerCallback) => Promise; + +// @public (undocumented) +export type SsrResponse = { + response: Response; + serverSsrCleanup: 'none'; +} | { + response: Response; + serverSsrCleanup: 'stream'; + dispose: (reason?: unknown) => undefined; +}; + +// @public (undocumented) +export function stripSsrResponseBody(result: HandlerCallbackResult, reason?: unknown): Extract; + +// @public (undocumented) +export function transformHtmlStringWithRouter(router: AnyRouter, html: string, opts?: TransformStreamWithRouterOptions): Promise; + +// @public (undocumented) +export function transformPipeableStreamWithRouter(router: AnyRouter, routerStream: Readable, opts?: TransformStreamWithRouterOptions): Readable; + +// Warning: (ae-forgotten-export) The symbol "AppStream" needs to be exported by the entry point server.d.ts +// +// @public (undocumented) +export function transformReadableStreamWithRouter(router: AnyRouter, appStream: AppStream, opts?: TransformStreamWithRouterOptions): ReadableStream>; + +// @public (undocumented) +export type TransformStreamWithRouterOptions = { + timeoutMs?: number; + lifetimeMs?: number; + signal?: AbortSignal; + rendererSafePoint?: 'script-close' | 'record-end'; + onAbort?: (reason?: unknown) => void; +}; + +// @public +export function waitForRequest(value: T | PromiseLike, signal: AbortSignal, onLate?: (value: T) => unknown, onLateError?: (reason: unknown) => unknown): Promise; + +// Warnings were encountered during analysis: +// +// dist/esm/ssr/ssr-server.d.ts:7:5 - (ae-forgotten-export) The symbol "AnyRouter" needs to be exported by the entry point server.d.ts +// dist/esm/ssr/ssr-server.d.ts:8:5 - (ae-forgotten-export) The symbol "ServerManifest" needs to be exported by the entry point server.d.ts +// dist/esm/ssr/ssr-server.d.ts:9:5 - (ae-forgotten-export) The symbol "ManifestRouteAssets" needs to be exported by the entry point server.d.ts + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/solid-router/api/index.api.md b/packages/solid-router/api/index.api.md new file mode 100644 index 0000000000..776888a8ba --- /dev/null +++ b/packages/solid-router/api/index.api.md @@ -0,0 +1,1174 @@ +## API Report File for "@tanstack/solid-router" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/index.d.ts`. Regenerate with `node scripts/api-report.mjs packages/solid-router` after a build. +> +> Imported as: +> +> - `@tanstack/solid-router` (`import`) + +```ts + +import { AbsoluteToPath } from '@tanstack/router-core'; +import { Accessor } from 'solid-js'; +import { ActiveOptions } from '@tanstack/router-core'; +import { AllContext } from '@tanstack/router-core'; +import { AllLoaderData } from '@tanstack/router-core'; +import { AllParams } from '@tanstack/router-core'; +import { AnyContext } from '@tanstack/router-core'; +import { AnyPathParams } from '@tanstack/router-core'; +import { AnyRedirect } from '@tanstack/router-core'; +import { AnyRoute } from '@tanstack/router-core'; +import { AnyRouteMatch } from '@tanstack/router-core'; +import { AnyRouter } from '@tanstack/router-core'; +import { AnyRouterWithContext } from '@tanstack/router-core'; +import { AnyRouteWithContext } from '@tanstack/router-core'; +import { AnySchema } from '@tanstack/router-core'; +import { AnySerializationAdapter } from '@tanstack/router-core'; +import { AnyValidator } from '@tanstack/router-core'; +import { AnyValidatorAdapter } from '@tanstack/router-core'; +import { AnyValidatorFn } from '@tanstack/router-core'; +import { AnyValidatorObj } from '@tanstack/router-core'; +import { AssetCrossOriginConfig } from '@tanstack/router-core'; +import { Assign } from '@tanstack/router-core'; +import { BaseRootRoute } from '@tanstack/router-core'; +import { BaseRoute } from '@tanstack/router-core'; +import { BaseRouteApi } from '@tanstack/router-core'; +import { BaseRouteOptions } from '@tanstack/router-core'; +import { BeforeLoadContextOptions } from '@tanstack/router-core'; +import { BeforeLoadContextParameter } from '@tanstack/router-core'; +import { BlockerFn } from '@tanstack/history'; +import { BuildLocationFn } from '@tanstack/router-core'; +import { BuildNextOptions } from '@tanstack/router-core'; +import { cleanPath } from '@tanstack/router-core'; +import { CommitLocationOptions } from '@tanstack/router-core'; +import { composeRewrites } from '@tanstack/router-core'; +import { Constrain } from '@tanstack/router-core'; +import { ConstrainLiteral } from '@tanstack/router-core'; +import { ContextAsyncReturnType } from '@tanstack/router-core'; +import { ContextOptions } from '@tanstack/router-core'; +import { ContextReturnType } from '@tanstack/router-core'; +import { ControllablePromise } from '@tanstack/router-core'; +import { ControlledPromise } from '@tanstack/router-core'; +import { createBrowserHistory } from '@tanstack/history'; +import { createControlledPromise } from '@tanstack/router-core'; +import { CreateFileRoute } from '@tanstack/router-core'; +import { createHashHistory } from '@tanstack/history'; +import { createHistory } from '@tanstack/history'; +import { CreateLazyFileRoute } from '@tanstack/router-core'; +import { createMemoryHistory } from '@tanstack/history'; +import { CreateRouterFn } from '@tanstack/router-core'; +import { createSerializationAdapter } from '@tanstack/router-core'; +import { deepEqual } from '@tanstack/router-core'; +import { DeepPartial } from '@tanstack/router-core'; +import { DEFAULT_PROTOCOL_ALLOWLIST } from '@tanstack/router-core'; +import { defaultParseSearch } from '@tanstack/router-core'; +import { defaultStringifySearch } from '@tanstack/router-core'; +import { DefaultValidator } from '@tanstack/router-core'; +import { defer } from '@tanstack/router-core'; +import { DeferredPromise } from '@tanstack/router-core'; +import { DeferredPromiseState } from '@tanstack/router-core'; +import { ErrorComponentProps } from '@tanstack/router-core'; +import { ErrorRouteProps } from '@tanstack/router-core'; +import { Expand } from '@tanstack/router-core'; +import { FileBaseRouteOptions } from '@tanstack/router-core'; +import { FileRoutesByPath } from '@tanstack/router-core'; +import { FileRouteTypes } from '@tanstack/router-core'; +import { FromPathOption } from '@tanstack/router-core'; +import { FullSearchSchema } from '@tanstack/router-core'; +import { FullSearchSchemaInput } from '@tanstack/router-core'; +import { FullSearchSchemaOption } from '@tanstack/router-core'; +import { functionalUpdate } from '@tanstack/router-core'; +import { HistoryAction } from '@tanstack/history'; +import { HistoryLocation } from '@tanstack/history'; +import { HistoryState } from '@tanstack/history'; +import { InferAllContext } from '@tanstack/router-core'; +import { InferAllParams } from '@tanstack/router-core'; +import { InferDescendantToPaths } from '@tanstack/router-core'; +import { InferFrom } from '@tanstack/router-core'; +import { InferFullSearchSchema } from '@tanstack/router-core'; +import { InferFullSearchSchemaInput } from '@tanstack/router-core'; +import { InferMaskFrom } from '@tanstack/router-core'; +import { InferMaskTo } from '@tanstack/router-core'; +import { InferSelected } from '@tanstack/router-core'; +import { InferShouldThrow } from '@tanstack/router-core'; +import { InferStrict } from '@tanstack/router-core'; +import { InferTo } from '@tanstack/router-core'; +import { interpolatePath } from '@tanstack/router-core'; +import { IntersectAssign } from '@tanstack/router-core'; +import { isMatch } from '@tanstack/router-core'; +import { isNotFound } from '@tanstack/router-core'; +import { isRedirect } from '@tanstack/router-core'; +import { joinPaths } from '@tanstack/router-core'; +import { JSX } from 'solid-js'; +import { lazyFn } from '@tanstack/router-core'; +import { LazyRouteOptions } from '@tanstack/router-core'; +import { LinkOptions } from '@tanstack/router-core'; +import { ListenerFn } from '@tanstack/router-core'; +import { LoaderFnContext } from '@tanstack/router-core'; +import { LocationRewrite } from '@tanstack/router-core'; +import { LocationRewriteFunction } from '@tanstack/router-core'; +import { LooseAsyncReturnType } from '@tanstack/router-core'; +import { LooseReturnType } from '@tanstack/router-core'; +import { MakeOptionalPathParams } from '@tanstack/router-core'; +import { MakeOptionalSearchParams } from '@tanstack/router-core'; +import { MakeRemountDepsOptionsUnion } from '@tanstack/router-core'; +import { MakeRouteMatch } from '@tanstack/router-core'; +import { MakeRouteMatchUnion } from '@tanstack/router-core'; +import { Manifest } from '@tanstack/router-core'; +import { MaskOptions } from '@tanstack/router-core'; +import { MatchLocation } from '@tanstack/router-core'; +import { MatchRouteOptions } from '@tanstack/router-core'; +import { MergeAll } from '@tanstack/router-core'; +import { MetaDescriptor } from '@tanstack/router-core'; +import { NavigateFn } from '@tanstack/router-core'; +import { NavigateOptions } from '@tanstack/router-core'; +import { notFound } from '@tanstack/router-core'; +import { NotFoundError } from '@tanstack/router-core'; +import { NotFoundRouteProps } from '@tanstack/router-core'; +import { ParamsOptions } from '@tanstack/router-core'; +import { ParsedLocation } from '@tanstack/router-core'; +import { ParsedPath } from '@tanstack/history'; +import { ParseParamsFn } from '@tanstack/router-core'; +import { ParseRoute } from '@tanstack/router-core'; +import { parseSearchWith } from '@tanstack/router-core'; +import { PathParamOptions } from '@tanstack/router-core'; +import { PreloadableObj } from '@tanstack/router-core'; +import { Redirect } from '@tanstack/router-core'; +import { redirect } from '@tanstack/router-core'; +import { RedirectOptions } from '@tanstack/router-core'; +import { Register } from '@tanstack/router-core'; +import { RegisteredRouter } from '@tanstack/router-core'; +import { RelativeToCurrentPath } from '@tanstack/router-core'; +import { RelativeToParentPath } from '@tanstack/router-core'; +import { RelativeToPath } from '@tanstack/router-core'; +import { RelativeToPathAutoComplete } from '@tanstack/router-core'; +import { RemountDepsOptions } from '@tanstack/router-core'; +import { RemoveLeadingSlashes } from '@tanstack/router-core'; +import { RemoveTrailingSlashes } from '@tanstack/router-core'; +import { replaceEqualDeep } from '@tanstack/router-core'; +import { ResolveAllContext } from '@tanstack/router-core'; +import { ResolveAllParamsFromParent } from '@tanstack/router-core'; +import { ResolvedRedirect } from '@tanstack/router-core'; +import { ResolveFullPath } from '@tanstack/router-core'; +import { ResolveFullSearchSchema } from '@tanstack/router-core'; +import { ResolveFullSearchSchemaInput } from '@tanstack/router-core'; +import { ResolveId } from '@tanstack/router-core'; +import { ResolveLoaderData } from '@tanstack/router-core'; +import { ResolveOptionalParams } from '@tanstack/router-core'; +import { ResolveParams } from '@tanstack/router-core'; +import { resolvePath } from '@tanstack/router-core'; +import { ResolveRelativePath } from '@tanstack/router-core'; +import { ResolveRequiredParams } from '@tanstack/router-core'; +import { ResolveRoute } from '@tanstack/router-core'; +import { ResolveRouteContext } from '@tanstack/router-core'; +import { ResolveSearchValidatorInput } from '@tanstack/router-core'; +import { ResolveSearchValidatorInputFn } from '@tanstack/router-core'; +import { ResolveUseLoaderData } from '@tanstack/router-core'; +import { ResolveUseLoaderDeps } from '@tanstack/router-core'; +import { ResolveUseParams } from '@tanstack/router-core'; +import { ResolveUseSearch } from '@tanstack/router-core'; +import { ResolveValidatorInput } from '@tanstack/router-core'; +import { ResolveValidatorInputFn } from '@tanstack/router-core'; +import { ResolveValidatorOutput } from '@tanstack/router-core'; +import { ResolveValidatorOutputFn } from '@tanstack/router-core'; +import { retainSearchParams } from '@tanstack/router-core'; +import { RootRoute as RootRoute_2 } from '@tanstack/router-core'; +import { RootRouteId } from '@tanstack/router-core'; +import { rootRouteId } from '@tanstack/router-core'; +import { RootRouteOptions } from '@tanstack/router-core'; +import { Route as Route_2 } from '@tanstack/router-core'; +import { RouteById } from '@tanstack/router-core'; +import { RouteByPath } from '@tanstack/router-core'; +import { RouteConstraints } from '@tanstack/router-core'; +import { RouteContext } from '@tanstack/router-core'; +import { RouteContextFn } from '@tanstack/router-core'; +import { RouteContextOptions } from '@tanstack/router-core'; +import { RouteContextParameter } from '@tanstack/router-core'; +import { RouteIds } from '@tanstack/router-core'; +import { RouteLinkEntry } from '@tanstack/router-core'; +import { RouteLoaderEntry } from '@tanstack/router-core'; +import { RouteLoaderFn } from '@tanstack/router-core'; +import { RouteMask } from '@tanstack/router-core'; +import { RouteMatch } from '@tanstack/router-core'; +import { RouteOptions } from '@tanstack/router-core'; +import { RoutePathOptions } from '@tanstack/router-core'; +import { RoutePathOptionsIntersection } from '@tanstack/router-core'; +import { RoutePaths } from '@tanstack/router-core'; +import { RouterConstructorOptions } from '@tanstack/router-core'; +import { RouterContextOptions } from '@tanstack/router-core'; +import { RouterCore } from '@tanstack/router-core'; +import { RouterEvent } from '@tanstack/router-core'; +import { RouterEvents } from '@tanstack/router-core'; +import { RouterHistory } from '@tanstack/history'; +import { RouterListener } from '@tanstack/router-core'; +import { RouterManagedTag } from '@tanstack/router-core'; +import { RouterOptions } from '@tanstack/router-core'; +import { RouterState } from '@tanstack/router-core'; +import { RoutesById } from '@tanstack/router-core'; +import { RoutesByPath } from '@tanstack/router-core'; +import { RouteTypesById } from '@tanstack/router-core'; +import { ScrollRestorationEntry } from '@tanstack/router-core'; +import { ScrollRestorationOptions } from '@tanstack/router-core'; +import { SearchFilter } from '@tanstack/router-core'; +import { SearchParamError } from '@tanstack/router-core'; +import { SearchParamOptions } from '@tanstack/router-core'; +import { SearchParser } from '@tanstack/router-core'; +import { SearchSchemaInput } from '@tanstack/router-core'; +import { SearchSerializer } from '@tanstack/router-core'; +import { SerializableExtensions } from '@tanstack/router-core'; +import { SerializationAdapter } from '@tanstack/router-core'; +import * as Solid from 'solid-js'; +import { StaticDataRouteOption } from '@tanstack/router-core'; +import { StrictOrFrom } from '@tanstack/router-core'; +import { StringifyParamsFn } from '@tanstack/router-core'; +import { stringifySearchWith } from '@tanstack/router-core'; +import { stripSearchParams } from '@tanstack/router-core'; +import { ThrowConstraint } from '@tanstack/router-core'; +import { ThrowOrOptional } from '@tanstack/router-core'; +import { ToMaskOptions } from '@tanstack/router-core'; +import { ToOptions } from '@tanstack/router-core'; +import { ToPathOption } from '@tanstack/router-core'; +import { ToSubOptions } from '@tanstack/router-core'; +import { ToSubOptionsProps } from '@tanstack/router-core'; +import { TrailingSlashOption } from '@tanstack/router-core'; +import { TrimPath } from '@tanstack/router-core'; +import { trimPath } from '@tanstack/router-core'; +import { TrimPathLeft } from '@tanstack/router-core'; +import { trimPathLeft } from '@tanstack/router-core'; +import { TrimPathRight } from '@tanstack/router-core'; +import { trimPathRight } from '@tanstack/router-core'; +import { UpdatableRouteOptions } from '@tanstack/router-core'; +import { UpdatableStaticRouteOption } from '@tanstack/router-core'; +import { UseLoaderDataResult } from '@tanstack/router-core'; +import { UseLoaderDepsResult } from '@tanstack/router-core'; +import { UseNavigateResult } from '@tanstack/router-core'; +import { UseParamsResult } from '@tanstack/router-core'; +import { UseRouteContextBaseOptions } from '@tanstack/router-core'; +import { UseRouteContextOptions } from '@tanstack/router-core'; +import { UseRouteContextResult } from '@tanstack/router-core'; +import { UseSearchResult } from '@tanstack/router-core'; +import { ValidateFromPath } from '@tanstack/router-core'; +import { ValidateId } from '@tanstack/router-core'; +import { ValidateNavigateOptions } from '@tanstack/router-core'; +import { ValidateNavigateOptionsArray } from '@tanstack/router-core'; +import { ValidateParams } from '@tanstack/router-core'; +import { ValidateRedirectOptions } from '@tanstack/router-core'; +import { ValidateRedirectOptionsArray } from '@tanstack/router-core'; +import { ValidateSearch } from '@tanstack/router-core'; +import { ValidateToPath } from '@tanstack/router-core'; +import { ValidateUseParamsResult } from '@tanstack/router-core'; +import { ValidateUseSearchResult } from '@tanstack/router-core'; +import { Validator } from '@tanstack/router-core'; +import { ValidatorAdapter } from '@tanstack/router-core'; +import { ValidatorFn } from '@tanstack/router-core'; +import { ValidatorObj } from '@tanstack/router-core'; + +export { AbsoluteToPath } + +// Warning: (ae-forgotten-export) The symbol "ActiveLinkOptionProps" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type ActiveLinkOptions = LinkOptions & ActiveLinkOptionProps; + +export { ActiveOptions } + +export { AllContext } + +export { AllLoaderData } + +export { AllParams } + +export { AnyContext } + +export { AnyPathParams } + +export { AnyRedirect } + +// @public (undocumented) +export type AnyRootRoute = RootRoute; + +export { AnyRoute } + +export { AnyRouteMatch } + +export { AnyRouter } + +export { AnyRouterWithContext } + +export { AnyRouteWithContext } + +export { AnySchema } + +export { AnySerializationAdapter } + +export { AnyValidator } + +export { AnyValidatorAdapter } + +export { AnyValidatorFn } + +export { AnyValidatorObj } + +// @public (undocumented) +export function Asset(asset: RouterManagedTag): JSX.Element | null; + +export { Assign } + +// Warning: (ae-forgotten-export) The symbol "RouteTypes" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type AsyncRouteComponent = RouteTypes['component'] & { + preload?: () => Promise | undefined; +}; + +// @public (undocumented) +export function Await(props: AwaitOptions & { + fallback?: SolidNode; + children: (result: T) => SolidNode; +}): Solid.JSX.Element; + +// @public (undocumented) +export type AwaitOptions = { + promise: Promise; +}; + +export { BaseRouteOptions } + +export { BeforeLoadContextOptions } + +export { BeforeLoadContextParameter } + +// Warning: (ae-forgotten-export) The symbol "BlockComponent" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export const Block: BlockComponent; + +export { BlockerFn } + +export { BuildLocationFn } + +export { BuildNextOptions } + +// @public (undocumented) +export function CatchBoundary(props: { + getResetKey: () => unknown; + children: Solid.JSX.Element; + errorComponent?: ErrorRouteComponent; + onCatch?: (error: Error) => void; +} & Solid.ParentProps): Solid.JSX.Element; + +// @public (undocumented) +export function CatchNotFound(props: { + fallback?: (error: NotFoundError) => Solid.JSX.Element; + onCatch?: (error: NotFoundError) => void; + children: Solid.JSX.Element; +}): Solid.JSX.Element; + +export { cleanPath } + +// Warning: (ae-forgotten-export) The symbol "ClientOnlyProps" needs to be exported by the entry point index.d.ts +// +// @public +export function ClientOnly(props: ClientOnlyProps): Solid.JSX.Element; + +export { CommitLocationOptions } + +export { composeRewrites } + +export { Constrain } + +export { ContextAsyncReturnType } + +export { ContextOptions } + +export { ContextReturnType } + +export { ControllablePromise } + +export { ControlledPromise } + +export { createBrowserHistory } + +export { createControlledPromise } + +export { CreateFileRoute } + +// @public (undocumented) +export function createFileRoute(path?: TFilePath): FileRoute['createRoute']; + +export { createHashHistory } + +export { createHistory } + +export { CreateLazyFileRoute } + +// @public (undocumented) +export function createLazyFileRoute(id: TFilePath): (opts: LazyRouteOptions) => LazyRoute; + +// @public (undocumented) +export function createLazyRoute>(id: ConstrainLiteral>): (opts: LazyRouteOptions) => LazyRoute; + +// @public (undocumented) +export function createLink(Comp: Constrain Solid.JSX.Element>): LinkComponent; + +// @public (undocumented) +export type CreateLinkProps = LinkProps; + +export { createMemoryHistory } + +// @public (undocumented) +export function createRootRoute = {}, TLoaderFn = undefined, TSSR = unknown, THandlers = undefined>(options?: RootRouteOptions): RootRoute; + +// @public (undocumented) +export function createRootRouteWithContext(): = {}, TLoaderFn = undefined, TSSR = unknown, THandlers = undefined>(options?: RootRouteOptions) => RootRoute; + +// @public (undocumented) +export function createRoute, TCustomId extends RouteConstraints['TCustomId'] = string, TId extends RouteConstraints['TId'] = ResolveId, TSearchValidator = undefined, TParams = ResolveParams, TRouteContextFn = AnyContext, TBeforeLoadFn = AnyContext, TLoaderDeps extends Record = {}, TLoaderFn = undefined, TChildren = unknown, TSSR = unknown, THandlers = undefined>(options: RouteOptions): Route; + +// @public (undocumented) +export function createRouteMask(opts: { + routeTree: TRouteTree; +} & ToMaskOptions, TFrom, TTo>): RouteMask; + +// @public (undocumented) +export const createRouter: CreateRouterFn; + +export { createSerializationAdapter } + +export { deepEqual } + +export { DEFAULT_PROTOCOL_ALLOWLIST } + +// @public (undocumented) +export function DefaultGlobalNotFound(): Solid.JSX.Element; + +export { defaultParseSearch } + +export { defaultStringifySearch } + +export { DefaultValidator } + +export { defer } + +export { DeferredPromise } + +export { DeferredPromiseState } + +// @public (undocumented) +export function ErrorComponent(input: { + error: Error; +}): Solid.JSX.Element; + +export { ErrorComponentProps } + +// @public (undocumented) +export type ErrorRouteComponent = AsyncRouteComponent; + +export { ErrorRouteProps } + +export { Expand } + +export { FileBaseRouteOptions } + +// @public @deprecated (undocumented) +export class FileRoute { + constructor(path?: TFilePath | undefined, _opts?: { + silent: boolean; + }); + // (undocumented) + createRoute: , TRouteContextFn = AnyContext, TBeforeLoadFn = AnyContext, TLoaderDeps extends Record = {}, TLoaderFn = undefined, TChildren = unknown, TSSR = unknown, const TMiddlewares = unknown, THandlers = undefined>(options?: FileBaseRouteOptions & UpdatableRouteOptions) => Route_2; + // (undocumented) + path?: TFilePath | undefined; + // (undocumented) + silent?: boolean; +} + +// @public @deprecated (undocumented) +export function FileRouteLoader(_path: TFilePath): (loaderFn: Constrain>) => TLoaderFn; + +export { FileRoutesByPath } + +export { FileRouteTypes } + +export { FullSearchSchema } + +export { FullSearchSchemaInput } + +export { FullSearchSchemaOption } + +export { functionalUpdate } + +// @public (undocumented) +export function getRouteApi(id: ConstrainLiteral>): RouteApi; + +// Warning: (ae-forgotten-export) The symbol "HeadContentProps" needs to be exported by the entry point index.d.ts +// +// @public +export function HeadContent(props: HeadContentProps): JSX.Element; + +export { HistoryLocation } + +export { HistoryState } + +export { InferAllContext } + +export { InferAllParams } + +export { InferDescendantToPaths } + +export { InferFrom } + +export { InferFullSearchSchema } + +export { InferFullSearchSchemaInput } + +export { InferMaskFrom } + +export { InferMaskTo } + +export { InferSelected } + +export { InferShouldThrow } + +export { InferStrict } + +export { InferTo } + +export { interpolatePath } + +export { IntersectAssign } + +export { isMatch } + +export { isNotFound } + +export { isRedirect } + +export { joinPaths } + +export { lazyFn } + +// @public (undocumented) +export class LazyRoute { + constructor(opts: { + id: string; + } & LazyRouteOptions); + // (undocumented) + options: { + id: string; + } & LazyRouteOptions; + // Warning: (ae-forgotten-export) The symbol "UseLoaderDataRoute" needs to be exported by the entry point index.d.ts + // + // (undocumented) + useLoaderData: UseLoaderDataRoute; + // Warning: (ae-forgotten-export) The symbol "UseLoaderDepsRoute" needs to be exported by the entry point index.d.ts + // + // (undocumented) + useLoaderDeps: UseLoaderDepsRoute; + // Warning: (ae-forgotten-export) The symbol "UseMatchRoute" needs to be exported by the entry point index.d.ts + // + // (undocumented) + useMatch: UseMatchRoute; + // (undocumented) + useNavigate: () => UseNavigateResult; + // Warning: (ae-forgotten-export) The symbol "UseParamsRoute" needs to be exported by the entry point index.d.ts + // + // (undocumented) + useParams: UseParamsRoute; + // Warning: (ae-forgotten-export) The symbol "UseRouteContextRoute" needs to be exported by the entry point index.d.ts + // + // (undocumented) + useRouteContext: UseRouteContextRoute; + // Warning: (ae-forgotten-export) The symbol "UseSearchRoute" needs to be exported by the entry point index.d.ts + // + // (undocumented) + useSearch: UseSearchRoute; +} + +// @public (undocumented) +export function lazyRouteComponent, TKey extends keyof T = 'default'>(importer: () => Promise, exportName?: TKey): T[TKey] extends (props: infer TProps) => any ? AsyncRouteComponent : never; + +export { LazyRouteOptions } + +// @public (undocumented) +export const Link: LinkComponent<'a'>; + +// @public (undocumented) +export type LinkComponent = (props: LinkComponentProps) => Solid.JSX.Element; + +// Warning: (ae-forgotten-export) The symbol "LinkComponentSolidProps" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type LinkComponentProps = LinkComponentSolidProps & LinkProps; + +export { LinkOptions } + +// Warning: (ae-forgotten-export) The symbol "LinkOptionsFn" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export const linkOptions: LinkOptionsFn<'a'>; + +// Warning: (ae-forgotten-export) The symbol "LinkPropsChildren" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type LinkProps = ActiveLinkOptions & LinkPropsChildren; + +export { ListenerFn } + +export { LoaderFnContext } + +export { LocationRewrite } + +export { LocationRewriteFunction } + +export { LooseAsyncReturnType } + +export { LooseReturnType } + +// @public (undocumented) +export type MakeMatchRouteOptions = UseMatchRouteOptions & { + children?: ((params?: Expand['types']['allParams']>) => Solid.JSX.Element) | Solid.JSX.Element; +}; + +export { MakeOptionalPathParams } + +export { MakeRemountDepsOptionsUnion } + +export { MakeRouteMatch } + +export { MakeRouteMatchUnion } + +export { Manifest } + +// @public (undocumented) +export const Match: (props: { + routeId: string; +}) => Solid.JSX.Element; + +// @public (undocumented) +export function Matches(): Solid.JSX.Element; + +export { MatchLocation } + +// @public (undocumented) +export function MatchRoute(props: MakeMatchRouteOptions): any; + +export { MatchRouteOptions } + +export { MergeAll } + +export { MetaDescriptor } + +// @public (undocumented) +export function Navigate(props: NavigateOptions): null; + +export { NavigateFn } + +export { NavigateOptions } + +export { notFound } + +export { NotFoundError } + +// @public (undocumented) +export class NotFoundRoute = {}, TLoaderFn = undefined, TChildren = unknown, TSSR = unknown, THandlers = undefined> extends Route { + constructor(options: Omit, 'caseSensitive' | 'parseParams' | 'stringifyParams' | 'path' | 'id' | 'params'>); +} + +// @public (undocumented) +export type NotFoundRouteComponent = RouteTypes['component']; + +export { NotFoundRouteProps } + +// @public (undocumented) +export const Outlet: () => Solid.JSX.Element; + +export { ParamsOptions } + +export { ParsedLocation } + +export { ParsedPath } + +export { ParseParamsFn } + +export { ParseRoute } + +export { parseSearchWith } + +export { PathParamOptions } + +export { PreloadableObj } + +export { Redirect } + +export { redirect } + +export { RedirectOptions } + +export { Register } + +export { RegisteredRouter } + +export { RelativeToCurrentPath } + +export { RelativeToParentPath } + +export { RelativeToPath } + +export { RelativeToPathAutoComplete } + +export { RemountDepsOptions } + +export { RemoveLeadingSlashes } + +export { RemoveTrailingSlashes } + +export { replaceEqualDeep } + +export { ResolveAllContext } + +export { ResolveAllParamsFromParent } + +export { ResolvedRedirect } + +export { ResolveFullPath } + +export { ResolveFullSearchSchema } + +export { ResolveFullSearchSchemaInput } + +export { ResolveId } + +export { ResolveLoaderData } + +export { ResolveOptionalParams } + +export { ResolveParams } + +export { resolvePath } + +export { ResolveRelativePath } + +export { ResolveRequiredParams } + +export { ResolveRoute } + +export { ResolveRouteContext } + +export { ResolveSearchValidatorInput } + +export { ResolveSearchValidatorInputFn } + +export { ResolveValidatorInput } + +export { ResolveValidatorInputFn } + +export { ResolveValidatorOutput } + +export { ResolveValidatorOutputFn } + +export { retainSearchParams } + +// @public (undocumented) +export class RootRoute = {}, in out TLoaderFn = undefined, in out TChildren = unknown, in out TFileRouteTypes = unknown, in out TSSR = unknown, in out THandlers = undefined> extends BaseRootRoute implements RootRoute_2 { + // @deprecated + constructor(options?: RootRouteOptions); + // Warning: (ae-forgotten-export) The symbol "LinkComponentRoute" needs to be exported by the entry point index.d.ts + // + // (undocumented) + Link: LinkComponentRoute<'/'>; + // (undocumented) + useLoaderData: UseLoaderDataRoute; + // (undocumented) + useLoaderDeps: UseLoaderDepsRoute; + // (undocumented) + useMatch: UseMatchRoute; + // (undocumented) + useNavigate: () => UseNavigateResult<"/">; + // (undocumented) + useParams: UseParamsRoute; + // (undocumented) + useRouteContext: UseRouteContextRoute; + // (undocumented) + useSearch: UseSearchRoute; +} + +export { RootRouteId } + +export { rootRouteId } + +export { RootRouteOptions } + +// @public @deprecated (undocumented) +export const rootRouteWithContext: typeof createRootRouteWithContext; + +// @public (undocumented) +export class Route, in out TCustomId extends RouteConstraints['TCustomId'] = string, in out TId extends RouteConstraints['TId'] = ResolveId, in out TSearchValidator = undefined, in out TParams = ResolveParams, in out TRouterContext = AnyContext, in out TRouteContextFn = AnyContext, in out TBeforeLoadFn = AnyContext, in out TLoaderDeps extends Record = {}, in out TLoaderFn = undefined, in out TChildren = unknown, in out TFileRouteTypes = unknown, in out TSSR = unknown, in out TMiddlewares = unknown, in out THandlers = undefined> extends BaseRoute implements Route_2 { + // @deprecated + constructor(options?: RouteOptions); + // (undocumented) + Link: LinkComponentRoute; + // (undocumented) + useLoaderData: UseLoaderDataRoute; + // (undocumented) + useLoaderDeps: UseLoaderDepsRoute; + // (undocumented) + useMatch: UseMatchRoute; + // (undocumented) + useNavigate: () => UseNavigateResult; + // (undocumented) + useParams: UseParamsRoute; + // (undocumented) + useRouteContext: UseRouteContextRoute; + // (undocumented) + useSearch: UseSearchRoute; +} + +// @public (undocumented) +export class RouteApi extends BaseRouteApi { + // @deprecated + constructor(input: { + id: TId; + }); + // (undocumented) + Link: LinkComponentRoute['fullPath']>; + // (undocumented) + notFound: (opts?: NotFoundError) => NotFoundError; + // (undocumented) + useLoaderData: UseLoaderDataRoute; + // (undocumented) + useLoaderDeps: UseLoaderDepsRoute; + // (undocumented) + useMatch: UseMatchRoute; + // (undocumented) + useNavigate: () => UseNavigateResult["fullPath"]>; + // (undocumented) + useParams: UseParamsRoute; + // (undocumented) + useRouteContext: UseRouteContextRoute; + // (undocumented) + useSearch: UseSearchRoute; +} + +export { RouteById } + +export { RouteByPath } + +// @public (undocumented) +export type RouteComponent = AsyncRouteComponent<{}>; + +export { RouteConstraints } + +export { RouteContext } + +export { RouteContextFn } + +export { RouteContextOptions } + +export { RouteContextParameter } + +export { RouteIds } + +export { RouteLinkEntry } + +export { RouteLoaderFn } + +export { RouteMask } + +export { RouteMatch } + +export { RouteOptions } + +export { RoutePathOptions } + +export { RoutePathOptionsIntersection } + +export { RoutePaths } + +// @public (undocumented) +export class Router = Record> extends RouterCore { + constructor(options: RouterConstructorOptions); +} + +export { RouterConstructorOptions } + +export { RouterContextOptions } + +// @public (undocumented) +export function RouterContextProvider = Record>(input: RouterProps & { + children: () => Solid.JSX.Element; +}): Solid.JSX.Element; + +export { RouterEvent } + +export { RouterEvents } + +export { RouterHistory } + +export { RouterListener } + +export { RouterManagedTag } + +export { RouterOptions } + +// @public (undocumented) +export type RouterProps = Record> = Omit, false, TRouter['history'], TDehydrated>, 'context' | 'pathParamsAllowedCharacters'> & { + router: TRouter; + context?: Partial, false, TRouter['history'], TDehydrated>['context']>; +}; + +// @public (undocumented) +export function RouterProvider = Record>(input: RouterProps): Solid.JSX.Element; + +export { RouterState } + +export { RoutesById } + +export { RoutesByPath } + +// @public (undocumented) +export function ScriptOnce(input: { + children: string; + log?: boolean; + sync?: boolean; +}): JSX.Element; + +// @public +export const Scripts: () => Solid.JSX.Element; + +// @public @deprecated (undocumented) +function ScrollRestoration_2(_props: ScrollRestorationOptions): null; +export { ScrollRestoration_2 as ScrollRestoration } + +export { SearchFilter } + +export { SearchParamError } + +export { SearchParamOptions } + +export { SearchParser } + +export { SearchSchemaInput } + +export { SearchSerializer } + +export { SerializableExtensions } + +export { SerializationAdapter } + +// Warning: (ae-forgotten-export) The symbol "ShouldBlockFnArgs" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type ShouldBlockFn = (args: ShouldBlockFnArgs) => boolean | Promise; + +// @public (undocumented) +export type SolidNode = Solid.JSX.Element; + +export { StaticDataRouteOption } + +export { StringifyParamsFn } + +export { stringifySearchWith } + +export { stripSearchParams } + +export { ToMaskOptions } + +export { ToOptions } + +export { ToPathOption } + +export { ToSubOptions } + +export { TrailingSlashOption } + +export { TrimPath } + +export { trimPath } + +export { TrimPathLeft } + +export { trimPathLeft } + +export { TrimPathRight } + +export { trimPathRight } + +export { UpdatableRouteOptions } + +export { UpdatableStaticRouteOption } + +// @public (undocumented) +export function useAwaited(input: AwaitOptions): [data: T, promise: DeferredPromise]; + +// Warning: (ae-forgotten-export) The symbol "BlockerResolver" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export function useBlocker(opts: UseBlockerOpts): TWithResolver extends true ? Solid.Accessor> : void; + +// Warning: (ae-forgotten-export) The symbol "LegacyBlockerOpts" needs to be exported by the entry point index.d.ts +// +// @public @deprecated (undocumented) +export function useBlocker(blockerFnOrOpts?: LegacyBlockerOpts): Solid.Accessor; + +// Warning: (ae-forgotten-export) The symbol "LegacyBlockerFn" needs to be exported by the entry point index.d.ts +// +// @public @deprecated (undocumented) +export function useBlocker(blockerFn?: LegacyBlockerFn, condition?: boolean | any): Solid.Accessor; + +// @public (undocumented) +export type UseBlockerOpts = { + shouldBlockFn: ShouldBlockFn; + enableBeforeUnload?: boolean | (() => boolean); + disabled?: boolean; + withResolver?: TWithResolver; +}; + +// @public (undocumented) +export function useCanGoBack(): Solid.Accessor; + +// Warning: (ae-forgotten-export) The symbol "UseMatchesBaseOptions" needs to be exported by the entry point index.d.ts +// Warning: (ae-forgotten-export) The symbol "UseMatchesResult" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export function useChildMatches(opts?: UseMatchesBaseOptions): Solid.Accessor>; + +// @public (undocumented) +export function useElementScrollRestoration(options: ({ + id: string; + getElement?: () => Window | Element | undefined | null; +} | { + id?: string; + getElement: () => Window | Element | undefined | null; +}) & { + getKey?: (location: ParsedLocation) => string; +}): ScrollRestorationEntry | undefined; + +// @public (undocumented) +export function useHydrated(): Solid.Accessor; + +// @public (undocumented) +export function useLinkProps | string = string, TTo extends string = '', TMaskFrom extends RoutePaths | string = TFrom, TMaskTo extends string = ''>(options: UseLinkPropsOptions): Solid.ComponentProps<'a'>; + +// @public (undocumented) +export type UseLinkPropsOptions | string = string, TTo extends string | undefined = '.', TMaskFrom extends RoutePaths | string = TFrom, TMaskTo extends string = '.'> = ActiveLinkOptions<'a', TRouter, TFrom, TTo, TMaskFrom, TMaskTo> & Omit, 'style'> & { + style?: Solid.JSX.CSSProperties; +}; + +// Warning: (ae-forgotten-export) The symbol "UseLoaderDataOptions" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export function useLoaderData(opts: UseLoaderDataOptions): Accessor>; + +// Warning: (ae-forgotten-export) The symbol "UseLoaderDepsOptions" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export function useLoaderDeps(opts: UseLoaderDepsOptions): Accessor>; + +// Warning: (ae-forgotten-export) The symbol "UseLocationBaseOptions" needs to be exported by the entry point index.d.ts +// Warning: (ae-forgotten-export) The symbol "UseLocationResult" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export function useLocation(opts?: UseLocationBaseOptions): Accessor>; + +// Warning: (ae-forgotten-export) The symbol "UseMatchOptions" needs to be exported by the entry point index.d.ts +// Warning: (ae-forgotten-export) The symbol "UseMatchResult" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export function useMatch(opts: UseMatchOptions, TSelected>): Solid.Accessor, TThrow>>; + +// @public (undocumented) +export function useMatches(opts?: UseMatchesBaseOptions): Solid.Accessor>; + +// @public (undocumented) +export function useMatchRoute(): (opts: UseMatchRouteOptions) => Solid.Accessor["types"]["allParams"]>>; + +// @public (undocumented) +export type UseMatchRouteOptions = ToSubOptionsProps & DeepPartial> & DeepPartial> & MaskOptions & MatchRouteOptions; + +// @public (undocumented) +export function useNavigate(_defaultOpts?: { + from?: FromPathOption; +}): UseNavigateResult; + +export { UseNavigateResult } + +// Warning: (ae-forgotten-export) The symbol "UseParamsOptions" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export function useParams(opts: UseParamsOptions, TSelected>): Accessor, TThrow>>; + +// @public (undocumented) +export function useParentMatches(opts?: UseMatchesBaseOptions): Solid.Accessor>; + +// @public (undocumented) +export function useRouteContext(opts: UseRouteContextOptions): Accessor>; + +// @public (undocumented) +export function useRouter(opts?: { + warn?: boolean; +}): TRouter; + +// Warning: (ae-forgotten-export) The symbol "UseRouterStateOptions" needs to be exported by the entry point index.d.ts +// Warning: (ae-forgotten-export) The symbol "UseRouterStateResult" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export function useRouterState(opts?: UseRouterStateOptions): Accessor>; + +// Warning: (ae-forgotten-export) The symbol "UseSearchOptions" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export function useSearch(opts: UseSearchOptions, TSelected>): Accessor, TThrow>>; + +// @public +export const useTags: (assetCrossOrigin?: AssetCrossOriginConfig) => Solid.Accessor; + +export { ValidateFromPath } + +export { ValidateId } + +// @public (undocumented) +export type ValidateLinkOptions = Constrain, InferTo, InferMaskFrom, InferMaskTo>>; + +// @public (undocumented) +export type ValidateLinkOptionsArray = ReadonlyArray, TDefaultFrom extends string = string, TComp = 'a'> = { + [K in keyof TOptions]: ValidateLinkOptions; +}; + +export { ValidateNavigateOptions } + +export { ValidateNavigateOptionsArray } + +export { ValidateParams } + +export { ValidateRedirectOptions } + +export { ValidateRedirectOptionsArray } + +export { ValidateSearch } + +export { ValidateToPath } + +// @public (undocumented) +export type ValidateUseParamsOptions = Constrain, InferStrict, InferShouldThrow, InferSelected>>; + +export { ValidateUseParamsResult } + +// @public (undocumented) +export type ValidateUseSearchOptions = Constrain, InferStrict, InferShouldThrow, InferSelected>>; + +export { ValidateUseSearchResult } + +export { Validator } + +export { ValidatorAdapter } + +export { ValidatorFn } + +export { ValidatorObj } + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/solid-router/api/source/index.api.md b/packages/solid-router/api/source/index.api.md new file mode 100644 index 0000000000..c6dc769d56 --- /dev/null +++ b/packages/solid-router/api/source/index.api.md @@ -0,0 +1,1174 @@ +## API Report File for "@tanstack/solid-router" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/source/index.d.ts`. Regenerate with `node scripts/api-report.mjs packages/solid-router` after a build. +> +> Imported as: +> +> - `@tanstack/solid-router` (`solid`) + +```ts + +import { AbsoluteToPath } from '@tanstack/router-core'; +import type { Accessor } from 'solid-js'; +import { ActiveOptions } from '@tanstack/router-core'; +import { AllContext } from '@tanstack/router-core'; +import { AllLoaderData } from '@tanstack/router-core'; +import { AllParams } from '@tanstack/router-core'; +import { AnyContext } from '@tanstack/router-core'; +import { AnyPathParams } from '@tanstack/router-core'; +import { AnyRedirect } from '@tanstack/router-core'; +import { AnyRoute } from '@tanstack/router-core'; +import { AnyRouteMatch } from '@tanstack/router-core'; +import { AnyRouter } from '@tanstack/router-core'; +import { AnyRouterWithContext } from '@tanstack/router-core'; +import { AnyRouteWithContext } from '@tanstack/router-core'; +import { AnySchema } from '@tanstack/router-core'; +import { AnySerializationAdapter } from '@tanstack/router-core'; +import { AnyValidator } from '@tanstack/router-core'; +import { AnyValidatorAdapter } from '@tanstack/router-core'; +import { AnyValidatorFn } from '@tanstack/router-core'; +import { AnyValidatorObj } from '@tanstack/router-core'; +import type { AssetCrossOriginConfig } from '@tanstack/router-core'; +import { Assign } from '@tanstack/router-core'; +import { BaseRootRoute } from '@tanstack/router-core'; +import { BaseRoute } from '@tanstack/router-core'; +import { BaseRouteApi } from '@tanstack/router-core'; +import { BaseRouteOptions } from '@tanstack/router-core'; +import { BeforeLoadContextOptions } from '@tanstack/router-core'; +import { BeforeLoadContextParameter } from '@tanstack/router-core'; +import { BlockerFn } from '@tanstack/history'; +import { BuildLocationFn } from '@tanstack/router-core'; +import { BuildNextOptions } from '@tanstack/router-core'; +import { cleanPath } from '@tanstack/router-core'; +import { CommitLocationOptions } from '@tanstack/router-core'; +import { composeRewrites } from '@tanstack/router-core'; +import { Constrain } from '@tanstack/router-core'; +import type { ConstrainLiteral } from '@tanstack/router-core'; +import { ContextAsyncReturnType } from '@tanstack/router-core'; +import { ContextOptions } from '@tanstack/router-core'; +import { ContextReturnType } from '@tanstack/router-core'; +import { ControllablePromise } from '@tanstack/router-core'; +import { ControlledPromise } from '@tanstack/router-core'; +import { createBrowserHistory } from '@tanstack/history'; +import { createControlledPromise } from '@tanstack/router-core'; +import { CreateFileRoute } from '@tanstack/router-core'; +import { createHashHistory } from '@tanstack/history'; +import { createHistory } from '@tanstack/history'; +import { CreateLazyFileRoute } from '@tanstack/router-core'; +import { createMemoryHistory } from '@tanstack/history'; +import type { CreateRouterFn } from '@tanstack/router-core'; +import { createSerializationAdapter } from '@tanstack/router-core'; +import { deepEqual } from '@tanstack/router-core'; +import type { DeepPartial } from '@tanstack/router-core'; +import { DEFAULT_PROTOCOL_ALLOWLIST } from '@tanstack/router-core'; +import { defaultParseSearch } from '@tanstack/router-core'; +import { defaultStringifySearch } from '@tanstack/router-core'; +import { DefaultValidator } from '@tanstack/router-core'; +import { defer } from '@tanstack/router-core'; +import { DeferredPromise } from '@tanstack/router-core'; +import { DeferredPromiseState } from '@tanstack/router-core'; +import { ErrorComponentProps } from '@tanstack/router-core'; +import { ErrorRouteProps } from '@tanstack/router-core'; +import { Expand } from '@tanstack/router-core'; +import { FileBaseRouteOptions } from '@tanstack/router-core'; +import { FileRoutesByPath } from '@tanstack/router-core'; +import { FileRouteTypes } from '@tanstack/router-core'; +import type { FromPathOption } from '@tanstack/router-core'; +import { FullSearchSchema } from '@tanstack/router-core'; +import { FullSearchSchemaInput } from '@tanstack/router-core'; +import { FullSearchSchemaOption } from '@tanstack/router-core'; +import { functionalUpdate } from '@tanstack/router-core'; +import type { HistoryAction } from '@tanstack/history'; +import { HistoryLocation } from '@tanstack/history'; +import { HistoryState } from '@tanstack/history'; +import { InferAllContext } from '@tanstack/router-core'; +import { InferAllParams } from '@tanstack/router-core'; +import { InferDescendantToPaths } from '@tanstack/router-core'; +import { InferFrom } from '@tanstack/router-core'; +import { InferFullSearchSchema } from '@tanstack/router-core'; +import { InferFullSearchSchemaInput } from '@tanstack/router-core'; +import { InferMaskFrom } from '@tanstack/router-core'; +import { InferMaskTo } from '@tanstack/router-core'; +import { InferSelected } from '@tanstack/router-core'; +import { InferShouldThrow } from '@tanstack/router-core'; +import { InferStrict } from '@tanstack/router-core'; +import { InferTo } from '@tanstack/router-core'; +import { interpolatePath } from '@tanstack/router-core'; +import { IntersectAssign } from '@tanstack/router-core'; +import { isMatch } from '@tanstack/router-core'; +import { isNotFound } from '@tanstack/router-core'; +import { isRedirect } from '@tanstack/router-core'; +import { joinPaths } from '@tanstack/router-core'; +import { JSX } from 'solid-js'; +import { lazyFn } from '@tanstack/router-core'; +import { LazyRouteOptions } from '@tanstack/router-core'; +import { LinkOptions } from '@tanstack/router-core'; +import { ListenerFn } from '@tanstack/router-core'; +import { LoaderFnContext } from '@tanstack/router-core'; +import { LocationRewrite } from '@tanstack/router-core'; +import { LocationRewriteFunction } from '@tanstack/router-core'; +import { LooseAsyncReturnType } from '@tanstack/router-core'; +import { LooseReturnType } from '@tanstack/router-core'; +import { MakeOptionalPathParams } from '@tanstack/router-core'; +import type { MakeOptionalSearchParams } from '@tanstack/router-core'; +import { MakeRemountDepsOptionsUnion } from '@tanstack/router-core'; +import { MakeRouteMatch } from '@tanstack/router-core'; +import { MakeRouteMatchUnion } from '@tanstack/router-core'; +import { Manifest } from '@tanstack/router-core'; +import type { MaskOptions } from '@tanstack/router-core'; +import { MatchLocation } from '@tanstack/router-core'; +import { MatchRouteOptions } from '@tanstack/router-core'; +import { MergeAll } from '@tanstack/router-core'; +import { MetaDescriptor } from '@tanstack/router-core'; +import { NavigateFn } from '@tanstack/router-core'; +import { NavigateOptions } from '@tanstack/router-core'; +import { notFound } from '@tanstack/router-core'; +import { NotFoundError } from '@tanstack/router-core'; +import { NotFoundRouteProps } from '@tanstack/router-core'; +import { ParamsOptions } from '@tanstack/router-core'; +import { ParsedLocation } from '@tanstack/router-core'; +import { ParsedPath } from '@tanstack/history'; +import { ParseParamsFn } from '@tanstack/router-core'; +import { ParseRoute } from '@tanstack/router-core'; +import { parseSearchWith } from '@tanstack/router-core'; +import { PathParamOptions } from '@tanstack/router-core'; +import { PreloadableObj } from '@tanstack/router-core'; +import { Redirect } from '@tanstack/router-core'; +import { redirect } from '@tanstack/router-core'; +import { RedirectOptions } from '@tanstack/router-core'; +import { Register } from '@tanstack/router-core'; +import { RegisteredRouter } from '@tanstack/router-core'; +import { RelativeToCurrentPath } from '@tanstack/router-core'; +import { RelativeToParentPath } from '@tanstack/router-core'; +import { RelativeToPath } from '@tanstack/router-core'; +import { RelativeToPathAutoComplete } from '@tanstack/router-core'; +import { RemountDepsOptions } from '@tanstack/router-core'; +import { RemoveLeadingSlashes } from '@tanstack/router-core'; +import { RemoveTrailingSlashes } from '@tanstack/router-core'; +import { replaceEqualDeep } from '@tanstack/router-core'; +import { ResolveAllContext } from '@tanstack/router-core'; +import { ResolveAllParamsFromParent } from '@tanstack/router-core'; +import { ResolvedRedirect } from '@tanstack/router-core'; +import { ResolveFullPath } from '@tanstack/router-core'; +import { ResolveFullSearchSchema } from '@tanstack/router-core'; +import { ResolveFullSearchSchemaInput } from '@tanstack/router-core'; +import { ResolveId } from '@tanstack/router-core'; +import { ResolveLoaderData } from '@tanstack/router-core'; +import { ResolveOptionalParams } from '@tanstack/router-core'; +import { ResolveParams } from '@tanstack/router-core'; +import { resolvePath } from '@tanstack/router-core'; +import { ResolveRelativePath } from '@tanstack/router-core'; +import { ResolveRequiredParams } from '@tanstack/router-core'; +import { ResolveRoute } from '@tanstack/router-core'; +import { ResolveRouteContext } from '@tanstack/router-core'; +import { ResolveSearchValidatorInput } from '@tanstack/router-core'; +import { ResolveSearchValidatorInputFn } from '@tanstack/router-core'; +import type { ResolveUseLoaderData } from '@tanstack/router-core'; +import type { ResolveUseLoaderDeps } from '@tanstack/router-core'; +import type { ResolveUseParams } from '@tanstack/router-core'; +import type { ResolveUseSearch } from '@tanstack/router-core'; +import { ResolveValidatorInput } from '@tanstack/router-core'; +import { ResolveValidatorInputFn } from '@tanstack/router-core'; +import { ResolveValidatorOutput } from '@tanstack/router-core'; +import { ResolveValidatorOutputFn } from '@tanstack/router-core'; +import { retainSearchParams } from '@tanstack/router-core'; +import type { RootRoute as RootRoute_2 } from '@tanstack/router-core'; +import { RootRouteId } from '@tanstack/router-core'; +import { rootRouteId } from '@tanstack/router-core'; +import { RootRouteOptions } from '@tanstack/router-core'; +import type { Route as Route_2 } from '@tanstack/router-core'; +import { RouteById } from '@tanstack/router-core'; +import { RouteByPath } from '@tanstack/router-core'; +import { RouteConstraints } from '@tanstack/router-core'; +import { RouteContext } from '@tanstack/router-core'; +import { RouteContextFn } from '@tanstack/router-core'; +import { RouteContextOptions } from '@tanstack/router-core'; +import { RouteContextParameter } from '@tanstack/router-core'; +import { RouteIds } from '@tanstack/router-core'; +import { RouteLinkEntry } from '@tanstack/router-core'; +import type { RouteLoaderEntry } from '@tanstack/router-core'; +import { RouteLoaderFn } from '@tanstack/router-core'; +import { RouteMask } from '@tanstack/router-core'; +import { RouteMatch } from '@tanstack/router-core'; +import { RouteOptions } from '@tanstack/router-core'; +import { RoutePathOptions } from '@tanstack/router-core'; +import { RoutePathOptionsIntersection } from '@tanstack/router-core'; +import { RoutePaths } from '@tanstack/router-core'; +import { RouterConstructorOptions } from '@tanstack/router-core'; +import { RouterContextOptions } from '@tanstack/router-core'; +import { RouterCore } from '@tanstack/router-core'; +import { RouterEvent } from '@tanstack/router-core'; +import { RouterEvents } from '@tanstack/router-core'; +import { RouterHistory } from '@tanstack/history'; +import { RouterListener } from '@tanstack/router-core'; +import { RouterManagedTag } from '@tanstack/router-core'; +import { RouterOptions } from '@tanstack/router-core'; +import { RouterState } from '@tanstack/router-core'; +import { RoutesById } from '@tanstack/router-core'; +import { RoutesByPath } from '@tanstack/router-core'; +import type { RouteTypesById } from '@tanstack/router-core'; +import type { ScrollRestorationEntry } from '@tanstack/router-core'; +import type { ScrollRestorationOptions } from '@tanstack/router-core'; +import { SearchFilter } from '@tanstack/router-core'; +import { SearchParamError } from '@tanstack/router-core'; +import { SearchParamOptions } from '@tanstack/router-core'; +import { SearchParser } from '@tanstack/router-core'; +import { SearchSchemaInput } from '@tanstack/router-core'; +import { SearchSerializer } from '@tanstack/router-core'; +import { SerializableExtensions } from '@tanstack/router-core'; +import { SerializationAdapter } from '@tanstack/router-core'; +import * as Solid from 'solid-js'; +import { StaticDataRouteOption } from '@tanstack/router-core'; +import type { StrictOrFrom } from '@tanstack/router-core'; +import { StringifyParamsFn } from '@tanstack/router-core'; +import { stringifySearchWith } from '@tanstack/router-core'; +import { stripSearchParams } from '@tanstack/router-core'; +import type { ThrowConstraint } from '@tanstack/router-core'; +import type { ThrowOrOptional } from '@tanstack/router-core'; +import { ToMaskOptions } from '@tanstack/router-core'; +import { ToOptions } from '@tanstack/router-core'; +import { ToPathOption } from '@tanstack/router-core'; +import { ToSubOptions } from '@tanstack/router-core'; +import type { ToSubOptionsProps } from '@tanstack/router-core'; +import { TrailingSlashOption } from '@tanstack/router-core'; +import { TrimPath } from '@tanstack/router-core'; +import { trimPath } from '@tanstack/router-core'; +import { TrimPathLeft } from '@tanstack/router-core'; +import { trimPathLeft } from '@tanstack/router-core'; +import { TrimPathRight } from '@tanstack/router-core'; +import { trimPathRight } from '@tanstack/router-core'; +import { UpdatableRouteOptions } from '@tanstack/router-core'; +import { UpdatableStaticRouteOption } from '@tanstack/router-core'; +import type { UseLoaderDataResult } from '@tanstack/router-core'; +import type { UseLoaderDepsResult } from '@tanstack/router-core'; +import { UseNavigateResult } from '@tanstack/router-core'; +import type { UseParamsResult } from '@tanstack/router-core'; +import type { UseRouteContextBaseOptions } from '@tanstack/router-core'; +import type { UseRouteContextOptions } from '@tanstack/router-core'; +import type { UseRouteContextResult } from '@tanstack/router-core'; +import type { UseSearchResult } from '@tanstack/router-core'; +import { ValidateFromPath } from '@tanstack/router-core'; +import { ValidateId } from '@tanstack/router-core'; +import { ValidateNavigateOptions } from '@tanstack/router-core'; +import { ValidateNavigateOptionsArray } from '@tanstack/router-core'; +import { ValidateParams } from '@tanstack/router-core'; +import { ValidateRedirectOptions } from '@tanstack/router-core'; +import { ValidateRedirectOptionsArray } from '@tanstack/router-core'; +import { ValidateSearch } from '@tanstack/router-core'; +import { ValidateToPath } from '@tanstack/router-core'; +import { ValidateUseParamsResult } from '@tanstack/router-core'; +import { ValidateUseSearchResult } from '@tanstack/router-core'; +import { Validator } from '@tanstack/router-core'; +import { ValidatorAdapter } from '@tanstack/router-core'; +import { ValidatorFn } from '@tanstack/router-core'; +import { ValidatorObj } from '@tanstack/router-core'; + +export { AbsoluteToPath } + +// Warning: (ae-forgotten-export) The symbol "ActiveLinkOptionProps" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type ActiveLinkOptions = LinkOptions & ActiveLinkOptionProps; + +export { ActiveOptions } + +export { AllContext } + +export { AllLoaderData } + +export { AllParams } + +export { AnyContext } + +export { AnyPathParams } + +export { AnyRedirect } + +// @public (undocumented) +export type AnyRootRoute = RootRoute; + +export { AnyRoute } + +export { AnyRouteMatch } + +export { AnyRouter } + +export { AnyRouterWithContext } + +export { AnyRouteWithContext } + +export { AnySchema } + +export { AnySerializationAdapter } + +export { AnyValidator } + +export { AnyValidatorAdapter } + +export { AnyValidatorFn } + +export { AnyValidatorObj } + +// @public (undocumented) +export function Asset(asset: RouterManagedTag): JSX.Element | null; + +export { Assign } + +// Warning: (ae-forgotten-export) The symbol "RouteTypes" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type AsyncRouteComponent = RouteTypes['component'] & { + preload?: () => Promise | undefined; +}; + +// @public (undocumented) +export function Await(props: AwaitOptions & { + fallback?: SolidNode; + children: (result: T) => SolidNode; +}): Solid.JSX.Element; + +// @public (undocumented) +export type AwaitOptions = { + promise: Promise; +}; + +export { BaseRouteOptions } + +export { BeforeLoadContextOptions } + +export { BeforeLoadContextParameter } + +// Warning: (ae-forgotten-export) The symbol "BlockComponent" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export const Block: BlockComponent; + +export { BlockerFn } + +export { BuildLocationFn } + +export { BuildNextOptions } + +// @public (undocumented) +export function CatchBoundary(props: { + getResetKey: () => unknown; + children: Solid.JSX.Element; + errorComponent?: ErrorRouteComponent; + onCatch?: (error: Error) => void; +} & Solid.ParentProps): Solid.JSX.Element; + +// @public (undocumented) +export function CatchNotFound(props: { + fallback?: (error: NotFoundError) => Solid.JSX.Element; + onCatch?: (error: NotFoundError) => void; + children: Solid.JSX.Element; +}): Solid.JSX.Element; + +export { cleanPath } + +// Warning: (ae-forgotten-export) The symbol "ClientOnlyProps" needs to be exported by the entry point index.d.ts +// +// @public +export function ClientOnly(props: ClientOnlyProps): Solid.JSX.Element; + +export { CommitLocationOptions } + +export { composeRewrites } + +export { Constrain } + +export { ContextAsyncReturnType } + +export { ContextOptions } + +export { ContextReturnType } + +export { ControllablePromise } + +export { ControlledPromise } + +export { createBrowserHistory } + +export { createControlledPromise } + +export { CreateFileRoute } + +// @public (undocumented) +export function createFileRoute(path?: TFilePath): FileRoute['createRoute']; + +export { createHashHistory } + +export { createHistory } + +export { CreateLazyFileRoute } + +// @public (undocumented) +export function createLazyFileRoute(id: TFilePath): (opts: LazyRouteOptions) => LazyRoute; + +// @public (undocumented) +export function createLazyRoute>(id: ConstrainLiteral>): (opts: LazyRouteOptions) => LazyRoute; + +// @public (undocumented) +export function createLink(Comp: Constrain Solid.JSX.Element>): LinkComponent; + +// @public (undocumented) +export type CreateLinkProps = LinkProps; + +export { createMemoryHistory } + +// @public (undocumented) +export function createRootRoute = {}, TLoaderFn = undefined, TSSR = unknown, THandlers = undefined>(options?: RootRouteOptions): RootRoute; + +// @public (undocumented) +export function createRootRouteWithContext(): = {}, TLoaderFn = undefined, TSSR = unknown, THandlers = undefined>(options?: RootRouteOptions) => RootRoute; + +// @public (undocumented) +export function createRoute, TCustomId extends RouteConstraints['TCustomId'] = string, TId extends RouteConstraints['TId'] = ResolveId, TSearchValidator = undefined, TParams = ResolveParams, TRouteContextFn = AnyContext, TBeforeLoadFn = AnyContext, TLoaderDeps extends Record = {}, TLoaderFn = undefined, TChildren = unknown, TSSR = unknown, THandlers = undefined>(options: RouteOptions): Route; + +// @public (undocumented) +export function createRouteMask(opts: { + routeTree: TRouteTree; +} & ToMaskOptions, TFrom, TTo>): RouteMask; + +// @public (undocumented) +export const createRouter: CreateRouterFn; + +export { createSerializationAdapter } + +export { deepEqual } + +export { DEFAULT_PROTOCOL_ALLOWLIST } + +// @public (undocumented) +export function DefaultGlobalNotFound(): Solid.JSX.Element; + +export { defaultParseSearch } + +export { defaultStringifySearch } + +export { DefaultValidator } + +export { defer } + +export { DeferredPromise } + +export { DeferredPromiseState } + +// @public (undocumented) +export function ErrorComponent(input: { + error: Error; +}): Solid.JSX.Element; + +export { ErrorComponentProps } + +// @public (undocumented) +export type ErrorRouteComponent = AsyncRouteComponent; + +export { ErrorRouteProps } + +export { Expand } + +export { FileBaseRouteOptions } + +// @public @deprecated (undocumented) +export class FileRoute { + constructor(path?: TFilePath | undefined, _opts?: { + silent: boolean; + }); + // (undocumented) + createRoute: , TRouteContextFn = AnyContext, TBeforeLoadFn = AnyContext, TLoaderDeps extends Record = {}, TLoaderFn = undefined, TChildren = unknown, TSSR = unknown, const TMiddlewares = unknown, THandlers = undefined>(options?: FileBaseRouteOptions & UpdatableRouteOptions) => Route_2; + // (undocumented) + path?: TFilePath | undefined; + // (undocumented) + silent?: boolean; +} + +// @public @deprecated (undocumented) +export function FileRouteLoader(_path: TFilePath): (loaderFn: Constrain>) => TLoaderFn; + +export { FileRoutesByPath } + +export { FileRouteTypes } + +export { FullSearchSchema } + +export { FullSearchSchemaInput } + +export { FullSearchSchemaOption } + +export { functionalUpdate } + +// @public (undocumented) +export function getRouteApi(id: ConstrainLiteral>): RouteApi; + +// Warning: (ae-forgotten-export) The symbol "HeadContentProps" needs to be exported by the entry point index.d.ts +// +// @public +export function HeadContent(props: HeadContentProps): JSX.Element; + +export { HistoryLocation } + +export { HistoryState } + +export { InferAllContext } + +export { InferAllParams } + +export { InferDescendantToPaths } + +export { InferFrom } + +export { InferFullSearchSchema } + +export { InferFullSearchSchemaInput } + +export { InferMaskFrom } + +export { InferMaskTo } + +export { InferSelected } + +export { InferShouldThrow } + +export { InferStrict } + +export { InferTo } + +export { interpolatePath } + +export { IntersectAssign } + +export { isMatch } + +export { isNotFound } + +export { isRedirect } + +export { joinPaths } + +export { lazyFn } + +// @public (undocumented) +export class LazyRoute { + constructor(opts: { + id: string; + } & LazyRouteOptions); + // (undocumented) + options: { + id: string; + } & LazyRouteOptions; + // Warning: (ae-forgotten-export) The symbol "UseLoaderDataRoute" needs to be exported by the entry point index.d.ts + // + // (undocumented) + useLoaderData: UseLoaderDataRoute; + // Warning: (ae-forgotten-export) The symbol "UseLoaderDepsRoute" needs to be exported by the entry point index.d.ts + // + // (undocumented) + useLoaderDeps: UseLoaderDepsRoute; + // Warning: (ae-forgotten-export) The symbol "UseMatchRoute" needs to be exported by the entry point index.d.ts + // + // (undocumented) + useMatch: UseMatchRoute; + // (undocumented) + useNavigate: () => UseNavigateResult; + // Warning: (ae-forgotten-export) The symbol "UseParamsRoute" needs to be exported by the entry point index.d.ts + // + // (undocumented) + useParams: UseParamsRoute; + // Warning: (ae-forgotten-export) The symbol "UseRouteContextRoute" needs to be exported by the entry point index.d.ts + // + // (undocumented) + useRouteContext: UseRouteContextRoute; + // Warning: (ae-forgotten-export) The symbol "UseSearchRoute" needs to be exported by the entry point index.d.ts + // + // (undocumented) + useSearch: UseSearchRoute; +} + +// @public (undocumented) +export function lazyRouteComponent, TKey extends keyof T = 'default'>(importer: () => Promise, exportName?: TKey): T[TKey] extends (props: infer TProps) => any ? AsyncRouteComponent : never; + +export { LazyRouteOptions } + +// @public (undocumented) +export const Link: LinkComponent<'a'>; + +// @public (undocumented) +export type LinkComponent = (props: LinkComponentProps) => Solid.JSX.Element; + +// Warning: (ae-forgotten-export) The symbol "LinkComponentSolidProps" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type LinkComponentProps = LinkComponentSolidProps & LinkProps; + +export { LinkOptions } + +// Warning: (ae-forgotten-export) The symbol "LinkOptionsFn" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export const linkOptions: LinkOptionsFn<'a'>; + +// Warning: (ae-forgotten-export) The symbol "LinkPropsChildren" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type LinkProps = ActiveLinkOptions & LinkPropsChildren; + +export { ListenerFn } + +export { LoaderFnContext } + +export { LocationRewrite } + +export { LocationRewriteFunction } + +export { LooseAsyncReturnType } + +export { LooseReturnType } + +// @public (undocumented) +export type MakeMatchRouteOptions = UseMatchRouteOptions & { + children?: ((params?: Expand['types']['allParams']>) => Solid.JSX.Element) | Solid.JSX.Element; +}; + +export { MakeOptionalPathParams } + +export { MakeRemountDepsOptionsUnion } + +export { MakeRouteMatch } + +export { MakeRouteMatchUnion } + +export { Manifest } + +// @public (undocumented) +export const Match: (props: { + routeId: string; +}) => Solid.JSX.Element; + +// @public (undocumented) +export function Matches(): Solid.JSX.Element; + +export { MatchLocation } + +// @public (undocumented) +export function MatchRoute(props: MakeMatchRouteOptions): any; + +export { MatchRouteOptions } + +export { MergeAll } + +export { MetaDescriptor } + +// @public (undocumented) +export function Navigate(props: NavigateOptions): null; + +export { NavigateFn } + +export { NavigateOptions } + +export { notFound } + +export { NotFoundError } + +// @public (undocumented) +export class NotFoundRoute = {}, TLoaderFn = undefined, TChildren = unknown, TSSR = unknown, THandlers = undefined> extends Route { + constructor(options: Omit, 'caseSensitive' | 'parseParams' | 'stringifyParams' | 'path' | 'id' | 'params'>); +} + +// @public (undocumented) +export type NotFoundRouteComponent = RouteTypes['component']; + +export { NotFoundRouteProps } + +// @public (undocumented) +export const Outlet: () => Solid.JSX.Element; + +export { ParamsOptions } + +export { ParsedLocation } + +export { ParsedPath } + +export { ParseParamsFn } + +export { ParseRoute } + +export { parseSearchWith } + +export { PathParamOptions } + +export { PreloadableObj } + +export { Redirect } + +export { redirect } + +export { RedirectOptions } + +export { Register } + +export { RegisteredRouter } + +export { RelativeToCurrentPath } + +export { RelativeToParentPath } + +export { RelativeToPath } + +export { RelativeToPathAutoComplete } + +export { RemountDepsOptions } + +export { RemoveLeadingSlashes } + +export { RemoveTrailingSlashes } + +export { replaceEqualDeep } + +export { ResolveAllContext } + +export { ResolveAllParamsFromParent } + +export { ResolvedRedirect } + +export { ResolveFullPath } + +export { ResolveFullSearchSchema } + +export { ResolveFullSearchSchemaInput } + +export { ResolveId } + +export { ResolveLoaderData } + +export { ResolveOptionalParams } + +export { ResolveParams } + +export { resolvePath } + +export { ResolveRelativePath } + +export { ResolveRequiredParams } + +export { ResolveRoute } + +export { ResolveRouteContext } + +export { ResolveSearchValidatorInput } + +export { ResolveSearchValidatorInputFn } + +export { ResolveValidatorInput } + +export { ResolveValidatorInputFn } + +export { ResolveValidatorOutput } + +export { ResolveValidatorOutputFn } + +export { retainSearchParams } + +// @public (undocumented) +export class RootRoute = {}, in out TLoaderFn = undefined, in out TChildren = unknown, in out TFileRouteTypes = unknown, in out TSSR = unknown, in out THandlers = undefined> extends BaseRootRoute implements RootRoute_2 { + // @deprecated + constructor(options?: RootRouteOptions); + // Warning: (ae-forgotten-export) The symbol "LinkComponentRoute" needs to be exported by the entry point index.d.ts + // + // (undocumented) + Link: LinkComponentRoute<'/'>; + // (undocumented) + useLoaderData: UseLoaderDataRoute; + // (undocumented) + useLoaderDeps: UseLoaderDepsRoute; + // (undocumented) + useMatch: UseMatchRoute; + // (undocumented) + useNavigate: () => UseNavigateResult<'/'>; + // (undocumented) + useParams: UseParamsRoute; + // (undocumented) + useRouteContext: UseRouteContextRoute; + // (undocumented) + useSearch: UseSearchRoute; +} + +export { RootRouteId } + +export { rootRouteId } + +export { RootRouteOptions } + +// @public @deprecated (undocumented) +export const rootRouteWithContext: typeof createRootRouteWithContext; + +// @public (undocumented) +export class Route, in out TCustomId extends RouteConstraints['TCustomId'] = string, in out TId extends RouteConstraints['TId'] = ResolveId, in out TSearchValidator = undefined, in out TParams = ResolveParams, in out TRouterContext = AnyContext, in out TRouteContextFn = AnyContext, in out TBeforeLoadFn = AnyContext, in out TLoaderDeps extends Record = {}, in out TLoaderFn = undefined, in out TChildren = unknown, in out TFileRouteTypes = unknown, in out TSSR = unknown, in out TMiddlewares = unknown, in out THandlers = undefined> extends BaseRoute implements Route_2 { + // @deprecated + constructor(options?: RouteOptions); + // (undocumented) + Link: LinkComponentRoute; + // (undocumented) + useLoaderData: UseLoaderDataRoute; + // (undocumented) + useLoaderDeps: UseLoaderDepsRoute; + // (undocumented) + useMatch: UseMatchRoute; + // (undocumented) + useNavigate: () => UseNavigateResult; + // (undocumented) + useParams: UseParamsRoute; + // (undocumented) + useRouteContext: UseRouteContextRoute; + // (undocumented) + useSearch: UseSearchRoute; +} + +// @public (undocumented) +export class RouteApi extends BaseRouteApi { + // @deprecated + constructor(input: { + id: TId; + }); + // (undocumented) + Link: LinkComponentRoute['fullPath']>; + // (undocumented) + notFound: (opts?: NotFoundError) => NotFoundError; + // (undocumented) + useLoaderData: UseLoaderDataRoute; + // (undocumented) + useLoaderDeps: UseLoaderDepsRoute; + // (undocumented) + useMatch: UseMatchRoute; + // (undocumented) + useNavigate: () => UseNavigateResult['fullPath']>; + // (undocumented) + useParams: UseParamsRoute; + // (undocumented) + useRouteContext: UseRouteContextRoute; + // (undocumented) + useSearch: UseSearchRoute; +} + +export { RouteById } + +export { RouteByPath } + +// @public (undocumented) +export type RouteComponent = AsyncRouteComponent<{}>; + +export { RouteConstraints } + +export { RouteContext } + +export { RouteContextFn } + +export { RouteContextOptions } + +export { RouteContextParameter } + +export { RouteIds } + +export { RouteLinkEntry } + +export { RouteLoaderFn } + +export { RouteMask } + +export { RouteMatch } + +export { RouteOptions } + +export { RoutePathOptions } + +export { RoutePathOptionsIntersection } + +export { RoutePaths } + +// @public (undocumented) +export class Router = Record> extends RouterCore { + constructor(options: RouterConstructorOptions); +} + +export { RouterConstructorOptions } + +export { RouterContextOptions } + +// @public (undocumented) +export function RouterContextProvider = Record>(input: RouterProps & { + children: () => Solid.JSX.Element; +}): Solid.JSX.Element; + +export { RouterEvent } + +export { RouterEvents } + +export { RouterHistory } + +export { RouterListener } + +export { RouterManagedTag } + +export { RouterOptions } + +// @public (undocumented) +export type RouterProps = Record> = Omit, false, TRouter['history'], TDehydrated>, 'context' | 'pathParamsAllowedCharacters'> & { + router: TRouter; + context?: Partial, false, TRouter['history'], TDehydrated>['context']>; +}; + +// @public (undocumented) +export function RouterProvider = Record>(input: RouterProps): Solid.JSX.Element; + +export { RouterState } + +export { RoutesById } + +export { RoutesByPath } + +// @public (undocumented) +export function ScriptOnce(input: { + children: string; + log?: boolean; + sync?: boolean; +}): JSX.Element; + +// @public +export const Scripts: () => Solid.JSX.Element; + +// @public @deprecated (undocumented) +function ScrollRestoration_2(_props: ScrollRestorationOptions): null; +export { ScrollRestoration_2 as ScrollRestoration } + +export { SearchFilter } + +export { SearchParamError } + +export { SearchParamOptions } + +export { SearchParser } + +export { SearchSchemaInput } + +export { SearchSerializer } + +export { SerializableExtensions } + +export { SerializationAdapter } + +// Warning: (ae-forgotten-export) The symbol "ShouldBlockFnArgs" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type ShouldBlockFn = (args: ShouldBlockFnArgs) => boolean | Promise; + +// @public (undocumented) +export type SolidNode = Solid.JSX.Element; + +export { StaticDataRouteOption } + +export { StringifyParamsFn } + +export { stringifySearchWith } + +export { stripSearchParams } + +export { ToMaskOptions } + +export { ToOptions } + +export { ToPathOption } + +export { ToSubOptions } + +export { TrailingSlashOption } + +export { TrimPath } + +export { trimPath } + +export { TrimPathLeft } + +export { trimPathLeft } + +export { TrimPathRight } + +export { trimPathRight } + +export { UpdatableRouteOptions } + +export { UpdatableStaticRouteOption } + +// @public (undocumented) +export function useAwaited(input: AwaitOptions): [data: T, promise: DeferredPromise]; + +// Warning: (ae-forgotten-export) The symbol "BlockerResolver" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export function useBlocker(opts: UseBlockerOpts): TWithResolver extends true ? Solid.Accessor> : void; + +// Warning: (ae-forgotten-export) The symbol "LegacyBlockerOpts" needs to be exported by the entry point index.d.ts +// +// @public @deprecated (undocumented) +export function useBlocker(blockerFnOrOpts?: LegacyBlockerOpts): Solid.Accessor; + +// Warning: (ae-forgotten-export) The symbol "LegacyBlockerFn" needs to be exported by the entry point index.d.ts +// +// @public @deprecated (undocumented) +export function useBlocker(blockerFn?: LegacyBlockerFn, condition?: boolean | any): Solid.Accessor; + +// @public (undocumented) +export type UseBlockerOpts = { + shouldBlockFn: ShouldBlockFn; + enableBeforeUnload?: boolean | (() => boolean); + disabled?: boolean; + withResolver?: TWithResolver; +}; + +// @public (undocumented) +export function useCanGoBack(): Solid.Accessor; + +// Warning: (ae-forgotten-export) The symbol "UseMatchesBaseOptions" needs to be exported by the entry point index.d.ts +// Warning: (ae-forgotten-export) The symbol "UseMatchesResult" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export function useChildMatches(opts?: UseMatchesBaseOptions): Solid.Accessor>; + +// @public (undocumented) +export function useElementScrollRestoration(options: ({ + id: string; + getElement?: () => Window | Element | undefined | null; +} | { + id?: string; + getElement: () => Window | Element | undefined | null; +}) & { + getKey?: (location: ParsedLocation) => string; +}): ScrollRestorationEntry | undefined; + +// @public (undocumented) +export function useHydrated(): Solid.Accessor; + +// @public (undocumented) +export function useLinkProps | string = string, TTo extends string = '', TMaskFrom extends RoutePaths | string = TFrom, TMaskTo extends string = ''>(options: UseLinkPropsOptions): Solid.ComponentProps<'a'>; + +// @public (undocumented) +export type UseLinkPropsOptions | string = string, TTo extends string | undefined = '.', TMaskFrom extends RoutePaths | string = TFrom, TMaskTo extends string = '.'> = ActiveLinkOptions<'a', TRouter, TFrom, TTo, TMaskFrom, TMaskTo> & Omit, 'style'> & { + style?: Solid.JSX.CSSProperties; +}; + +// Warning: (ae-forgotten-export) The symbol "UseLoaderDataOptions" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export function useLoaderData(opts: UseLoaderDataOptions): Accessor>; + +// Warning: (ae-forgotten-export) The symbol "UseLoaderDepsOptions" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export function useLoaderDeps(opts: UseLoaderDepsOptions): Accessor>; + +// Warning: (ae-forgotten-export) The symbol "UseLocationBaseOptions" needs to be exported by the entry point index.d.ts +// Warning: (ae-forgotten-export) The symbol "UseLocationResult" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export function useLocation(opts?: UseLocationBaseOptions): Accessor>; + +// Warning: (ae-forgotten-export) The symbol "UseMatchOptions" needs to be exported by the entry point index.d.ts +// Warning: (ae-forgotten-export) The symbol "UseMatchResult" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export function useMatch(opts: UseMatchOptions, TSelected>): Solid.Accessor, TThrow>>; + +// @public (undocumented) +export function useMatches(opts?: UseMatchesBaseOptions): Solid.Accessor>; + +// @public (undocumented) +export function useMatchRoute(): (opts: UseMatchRouteOptions) => Solid.Accessor['types']['allParams']>>; + +// @public (undocumented) +export type UseMatchRouteOptions = ToSubOptionsProps & DeepPartial> & DeepPartial> & MaskOptions & MatchRouteOptions; + +// @public (undocumented) +export function useNavigate(_defaultOpts?: { + from?: FromPathOption; +}): UseNavigateResult; + +export { UseNavigateResult } + +// Warning: (ae-forgotten-export) The symbol "UseParamsOptions" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export function useParams(opts: UseParamsOptions, TSelected>): Accessor, TThrow>>; + +// @public (undocumented) +export function useParentMatches(opts?: UseMatchesBaseOptions): Solid.Accessor>; + +// @public (undocumented) +export function useRouteContext(opts: UseRouteContextOptions): Accessor>; + +// @public (undocumented) +export function useRouter(opts?: { + warn?: boolean; +}): TRouter; + +// Warning: (ae-forgotten-export) The symbol "UseRouterStateOptions" needs to be exported by the entry point index.d.ts +// Warning: (ae-forgotten-export) The symbol "UseRouterStateResult" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export function useRouterState(opts?: UseRouterStateOptions): Accessor>; + +// Warning: (ae-forgotten-export) The symbol "UseSearchOptions" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export function useSearch(opts: UseSearchOptions, TSelected>): Accessor, TThrow>>; + +// @public +export const useTags: (assetCrossOrigin?: AssetCrossOriginConfig) => Solid.Accessor; + +export { ValidateFromPath } + +export { ValidateId } + +// @public (undocumented) +export type ValidateLinkOptions = Constrain, InferTo, InferMaskFrom, InferMaskTo>>; + +// @public (undocumented) +export type ValidateLinkOptionsArray = ReadonlyArray, TDefaultFrom extends string = string, TComp = 'a'> = { + [K in keyof TOptions]: ValidateLinkOptions; +}; + +export { ValidateNavigateOptions } + +export { ValidateNavigateOptionsArray } + +export { ValidateParams } + +export { ValidateRedirectOptions } + +export { ValidateRedirectOptionsArray } + +export { ValidateSearch } + +export { ValidateToPath } + +// @public (undocumented) +export type ValidateUseParamsOptions = Constrain, InferStrict, InferShouldThrow, InferSelected>>; + +export { ValidateUseParamsResult } + +// @public (undocumented) +export type ValidateUseSearchOptions = Constrain, InferStrict, InferShouldThrow, InferSelected>>; + +export { ValidateUseSearchResult } + +export { Validator } + +export { ValidatorAdapter } + +export { ValidatorFn } + +export { ValidatorObj } + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/solid-router/api/source/ssr/client.api.md b/packages/solid-router/api/source/ssr/client.api.md new file mode 100644 index 0000000000..f9b02d23c0 --- /dev/null +++ b/packages/solid-router/api/source/ssr/client.api.md @@ -0,0 +1,23 @@ +## API Report File for "@tanstack/solid-router" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/source/ssr/client.d.ts`. Regenerate with `node scripts/api-report.mjs packages/solid-router` after a build. +> +> Imported as: +> +> - `@tanstack/solid-router/ssr/client` (`solid`) + +```ts + +import type { AnyRouter } from '@tanstack/router-core'; +import { JSX } from 'solid-js'; + +// @public (undocumented) +export function RouterClient(props: { + router: AnyRouter; +}): JSX.Element; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/solid-router/api/source/ssr/server.api.md b/packages/solid-router/api/source/ssr/server.api.md new file mode 100644 index 0000000000..c60e350e46 --- /dev/null +++ b/packages/solid-router/api/source/ssr/server.api.md @@ -0,0 +1,53 @@ +## API Report File for "@tanstack/solid-router" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/source/ssr/server.d.ts`. Regenerate with `node scripts/api-report.mjs packages/solid-router` after a build. +> +> Imported as: +> +> - `@tanstack/solid-router/ssr/server` (`solid`) + +```ts + +import { AnyRouter } from '@tanstack/router-core'; +import { HandlerCallback } from '@tanstack/router-core/ssr/server'; +import { JSX } from 'solid-js'; +import type { JSXElement } from 'solid-js'; + +// @public (undocumented) +export const defaultRenderHandler: HandlerCallback; + +// @public (undocumented) +export const defaultStreamHandler: HandlerCallback; + +// @public (undocumented) +export const renderRouterToStream: (input: { + request: Request; + router: AnyRouter; + responseHeaders: Headers; + children: () => JSXElement; +}) => Promise<{ + response: Response; + serverSsrCleanup: 'stream'; + dispose: (reason?: unknown) => undefined; +}>; + +// @public (undocumented) +export const renderRouterToString: (input: { + router: AnyRouter; + responseHeaders: Headers; + children: () => JSXElement; +}) => Promise; + +// @public (undocumented) +export function RouterServer(props: { + router: TRouter; +}): JSX.Element; + + +export * from "@tanstack/router-core/ssr/server"; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/solid-router/api/ssr/client.api.md b/packages/solid-router/api/ssr/client.api.md new file mode 100644 index 0000000000..b135095f35 --- /dev/null +++ b/packages/solid-router/api/ssr/client.api.md @@ -0,0 +1,23 @@ +## API Report File for "@tanstack/solid-router" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/ssr/client.d.ts`. Regenerate with `node scripts/api-report.mjs packages/solid-router` after a build. +> +> Imported as: +> +> - `@tanstack/solid-router/ssr/client` (`import`) + +```ts + +import { AnyRouter } from '@tanstack/router-core'; +import { JSX } from 'solid-js'; + +// @public (undocumented) +export function RouterClient(props: { + router: AnyRouter; +}): JSX.Element; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/solid-router/api/ssr/server.api.md b/packages/solid-router/api/ssr/server.api.md new file mode 100644 index 0000000000..f0c2dcaa3d --- /dev/null +++ b/packages/solid-router/api/ssr/server.api.md @@ -0,0 +1,53 @@ +## API Report File for "@tanstack/solid-router" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/ssr/server.d.ts`. Regenerate with `node scripts/api-report.mjs packages/solid-router` after a build. +> +> Imported as: +> +> - `@tanstack/solid-router/ssr/server` (`import`) + +```ts + +import { AnyRouter } from '@tanstack/router-core'; +import { HandlerCallback } from '@tanstack/router-core/ssr/server'; +import { JSX } from 'solid-js'; +import { JSXElement } from 'solid-js'; + +// @public (undocumented) +export const defaultRenderHandler: HandlerCallback; + +// @public (undocumented) +export const defaultStreamHandler: HandlerCallback; + +// @public (undocumented) +export const renderRouterToStream: (input: { + request: Request; + router: AnyRouter; + responseHeaders: Headers; + children: () => JSXElement; +}) => Promise<{ + response: Response; + serverSsrCleanup: "stream"; + dispose: (reason?: unknown) => undefined; +}>; + +// @public (undocumented) +export const renderRouterToString: (input: { + router: AnyRouter; + responseHeaders: Headers; + children: () => JSXElement; +}) => Promise; + +// @public (undocumented) +export function RouterServer(props: { + router: TRouter; +}): JSX.Element; + + +export * from "@tanstack/router-core/ssr/server"; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/solid-start-client/api/Hydrate.api.md b/packages/solid-start-client/api/Hydrate.api.md new file mode 100644 index 0000000000..66432777cc --- /dev/null +++ b/packages/solid-start-client/api/Hydrate.api.md @@ -0,0 +1,78 @@ +## API Report File for "@tanstack/solid-start-client" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/Hydrate.d.ts`. Regenerate with `node scripts/api-report.mjs packages/solid-start-client` after a build. +> +> Imported as: +> +> - `@tanstack/solid-start-client/Hydrate` (`import`) + +```ts + +import { HydrationInteractionEvent } from '@tanstack/start-client-core/hydration'; +import { HydrationInteractionEvents } from '@tanstack/start-client-core/hydration'; +import { HydrationPrefetchContext } from '@tanstack/start-client-core/hydration'; +import { HydrationPrefetchFunction } from '@tanstack/start-client-core/hydration'; +import { HydrationPrefetchStrategy } from '@tanstack/start-client-core/hydration'; +import { HydrationPrefetchWaitReason } from '@tanstack/start-client-core/hydration'; +import { HydrationStrategy as HydrationStrategy_2 } from '@tanstack/start-client-core/hydration'; +import { HydrationWhen } from '@tanstack/start-client-core/hydration'; +import type * as Solid from 'solid-js'; + +// @public (undocumented) +export function Hydrate(props: HydrateProps): Solid.JSX.Element; + +// Warning: (ae-forgotten-export) The symbol "HydrateCommonOptions" needs to be exported by the entry point Hydrate.d.ts +// +// @public (undocumented) +export type HydrateOptions = (HydrateCommonOptions & { + prefetch?: never; + split?: boolean; +}) | (HydrateCommonOptions & { + prefetch: HydrationPrefetchStrategy; + split?: true; +}) | (HydrateCommonOptions & { + prefetch: HydrationPrefetchFunction; + split?: boolean; +}); + +// @public (undocumented) +export type HydrateProps = HydrateOptions & { + children: Solid.JSX.Element; +}; + +// @public (undocumented) +export type HydrateWhen = SolidHydrationStrategy | (() => SolidHydrationStrategy); + +export { HydrationInteractionEvent } + +export { HydrationInteractionEvents } + +export { HydrationPrefetchContext } + +export { HydrationPrefetchFunction } + +export { HydrationPrefetchStrategy } + +export { HydrationPrefetchWaitReason } + +// @public (undocumented) +export type HydrationStrategy = SolidHydrationStrategy; + +export { HydrationWhen } + +// @public (undocumented) +export type InternalHydrateProps = HydrateProps & { + h?: string; + p?: () => Promise; +}; + +// @public (undocumented) +export type SolidHydrationStrategy = HydrationStrategy_2 & { + _h: (props: HydrateProps) => Solid.JSX.Element; +}; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/solid-start-client/api/hydration.api.md b/packages/solid-start-client/api/hydration.api.md new file mode 100644 index 0000000000..ea0d56b310 --- /dev/null +++ b/packages/solid-start-client/api/hydration.api.md @@ -0,0 +1,89 @@ +## API Report File for "@tanstack/solid-start-client" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/hydration.d.ts`. Regenerate with `node scripts/api-report.mjs packages/solid-start-client` after a build. +> +> Imported as: +> +> - `@tanstack/solid-start-client/hydration` (`import`) + +```ts + +import { HydrationCondition } from '@tanstack/start-client-core/hydration'; +import { HydrationInteractionEvent } from '@tanstack/start-client-core/hydration'; +import { HydrationInteractionEvents } from '@tanstack/start-client-core/hydration'; +import { HydrationPrefetchContext } from '@tanstack/start-client-core/hydration'; +import { HydrationPrefetchFunction } from '@tanstack/start-client-core/hydration'; +import { HydrationPrefetchStrategy } from '@tanstack/start-client-core/hydration'; +import { HydrationPrefetchWaitReason } from '@tanstack/start-client-core/hydration'; +import { HydrationPrefetchWhen } from '@tanstack/start-client-core/hydration'; +import { HydrationStrategy as HydrationStrategy_2 } from '@tanstack/start-client-core/hydration'; +import { HydrationStrategyTypes } from '@tanstack/start-client-core/hydration'; +import { HydrationWhen } from '@tanstack/start-client-core/hydration'; +import { IdleHydrationOptions } from '@tanstack/start-client-core/hydration'; +import type * as Solid from 'solid-js'; +import { VisibleHydrationOptions } from '@tanstack/start-client-core/hydration'; + +// @public (undocumented) +export function condition(condition: HydrationCondition): SolidHydrationStrategy<'condition', false>; + +export { HydrationCondition } + +export { HydrationInteractionEvent } + +export { HydrationInteractionEvents } + +export { HydrationPrefetchContext } + +export { HydrationPrefetchFunction } + +export { HydrationPrefetchStrategy } + +export { HydrationPrefetchWaitReason } + +export { HydrationPrefetchWhen } + +// @public (undocumented) +export type HydrationStrategy = SolidHydrationStrategy; + +export { HydrationStrategyTypes } + +export { HydrationWhen } + +// @public (undocumented) +export function idle(options?: IdleHydrationOptions): SolidHydrationStrategy<'idle', true> & HydrationPrefetchStrategy<'idle'>; + +export { IdleHydrationOptions } + +// @public (undocumented) +export function interaction(options?: { + events?: HydrationInteractionEvents; +}): SolidHydrationStrategy<'interaction', true> & HydrationPrefetchStrategy<'interaction'>; + +// @public (undocumented) +export function load(): SolidHydrationStrategy<'load', true> & HydrationPrefetchStrategy<'load'>; + +// @public (undocumented) +export function media(query: string): SolidHydrationStrategy<'media', true> & HydrationPrefetchStrategy<'media'>; + +// @public (undocumented) +export function never(): SolidHydrationStrategy<'never', false>; + +// @public (undocumented) +export type SolidHydrationStrategy = HydrationStrategy_2 & { + _h: (props: HydrateProps) => Solid.JSX.Element; +}; + +// @public (undocumented) +export function visible(options?: VisibleHydrationOptions): SolidHydrationStrategy<'visible', true> & HydrationPrefetchStrategy<'visible'>; + +export { VisibleHydrationOptions } + +// Warnings were encountered during analysis: +// +// dist/esm/Hydrate.d.ts:5:5 - (ae-forgotten-export) The symbol "HydrateProps" needs to be exported by the entry point hydration.d.ts + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/solid-start-client/api/index.api.md b/packages/solid-start-client/api/index.api.md new file mode 100644 index 0000000000..1baf0a9dae --- /dev/null +++ b/packages/solid-start-client/api/index.api.md @@ -0,0 +1,26 @@ +## API Report File for "@tanstack/solid-start-client" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/index.d.ts`. Regenerate with `node scripts/api-report.mjs packages/solid-start-client` after a build. +> +> Imported as: +> +> - `@tanstack/solid-start-client` (`import`) + +```ts + +import { AnyRouter } from '@tanstack/router-core'; +import { JSX } from 'solid-js'; + +// @public +export function hydrateStart(): Promise; + +// @public (undocumented) +export function StartClient(props: { + router: AnyRouter; +}): JSX.Element; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/solid-start-server/api/index.api.md b/packages/solid-start-server/api/index.api.md new file mode 100644 index 0000000000..59fa8b4696 --- /dev/null +++ b/packages/solid-start-server/api/index.api.md @@ -0,0 +1,39 @@ +## API Report File for "@tanstack/solid-start-server" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/index.d.ts`. Regenerate with `node scripts/api-report.mjs packages/solid-start-server` after a build. +> +> Imported as: +> +> - `@tanstack/solid-start-server` (`import`) + +```ts + +import { AnyRouter } from '@tanstack/router-core'; +import { HandlerCallback } from '@tanstack/start-server-core'; +import { JSX } from 'solid-js'; +import { RequestHandler } from '@tanstack/start-server-core'; +import { RequestOptions } from '@tanstack/start-server-core'; + +// @public (undocumented) +export const defaultRenderHandler: HandlerCallback; + +// @public (undocumented) +export const defaultStreamHandler: HandlerCallback; + +export { RequestHandler } + +export { RequestOptions } + +// @public (undocumented) +export function StartServer(props: { + router: TRouter; +}): JSX.Element; + + +export * from "@tanstack/start-server-core"; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/solid-start/api/client-only.api.md b/packages/solid-start/api/client-only.api.md new file mode 100644 index 0000000000..e26a63f008 --- /dev/null +++ b/packages/solid-start/api/client-only.api.md @@ -0,0 +1,15 @@ +## API Report File for "@tanstack/solid-start" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/client-only.d.ts`. Regenerate with `node scripts/api-report.mjs packages/solid-start` after a build. +> +> Imported as: +> +> - `@tanstack/solid-start/client-only` (`import`) + +```ts + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/solid-start/api/client-rpc.api.md b/packages/solid-start/api/client-rpc.api.md new file mode 100644 index 0000000000..53ff2c31ed --- /dev/null +++ b/packages/solid-start/api/client-rpc.api.md @@ -0,0 +1,18 @@ +## API Report File for "@tanstack/solid-start" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/client-rpc.d.ts`. Regenerate with `node scripts/api-report.mjs packages/solid-start` after a build. +> +> Imported as: +> +> - `@tanstack/solid-start/client-rpc` (`import`) + +```ts + + +export * from "@tanstack/start-client-core/client-rpc"; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/solid-start/api/client.api.md b/packages/solid-start/api/client.api.md new file mode 100644 index 0000000000..91ba50c5bb --- /dev/null +++ b/packages/solid-start/api/client.api.md @@ -0,0 +1,18 @@ +## API Report File for "@tanstack/solid-start" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/client.d.ts`. Regenerate with `node scripts/api-report.mjs packages/solid-start` after a build. +> +> Imported as: +> +> - `@tanstack/solid-start/client` (`import`) + +```ts + + +export * from "@tanstack/solid-start-client"; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/solid-start/api/default-entry/server.api.md b/packages/solid-start/api/default-entry/server.api.md new file mode 100644 index 0000000000..1e31b7302d --- /dev/null +++ b/packages/solid-start/api/default-entry/server.api.md @@ -0,0 +1,30 @@ +## API Report File for "@tanstack/solid-start" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/default-entry/esm/server.d.ts`. Regenerate with `node scripts/api-report.mjs packages/solid-start` after a build. +> +> Imported as: +> +> - `@tanstack/solid-start/server-entry` (`import`) + +```ts + +import { Register } from '@tanstack/solid-router'; +import { RequestHandler } from '@tanstack/solid-start-server'; + +// @public (undocumented) +export const createServerEntry: (entry: ServerEntry) => ServerEntry; + +// @public (undocumented) +const _default: ServerEntry; +export default _default; + +// @public (undocumented) +export type ServerEntry = { + fetch: RequestHandler; +}; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/solid-start/api/hydration.api.md b/packages/solid-start/api/hydration.api.md new file mode 100644 index 0000000000..78e38c0b7f --- /dev/null +++ b/packages/solid-start/api/hydration.api.md @@ -0,0 +1,58 @@ +## API Report File for "@tanstack/solid-start" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/hydration.d.ts`. Regenerate with `node scripts/api-report.mjs packages/solid-start` after a build. +> +> Imported as: +> +> - `@tanstack/solid-start/hydration` (`import`) + +```ts + +import { condition } from '@tanstack/solid-start-client/hydration'; +import { HydrationCondition } from '@tanstack/solid-start-client/hydration'; +import { HydrationInteractionEvent } from '@tanstack/solid-start-client/hydration'; +import { HydrationInteractionEvents } from '@tanstack/solid-start-client/hydration'; +import { HydrationPrefetchStrategy } from '@tanstack/solid-start-client/hydration'; +import { HydrationStrategy } from '@tanstack/solid-start-client/hydration'; +import { HydrationWhen } from '@tanstack/solid-start-client/hydration'; +import { idle } from '@tanstack/solid-start-client/hydration'; +import { interaction } from '@tanstack/solid-start-client/hydration'; +import { load } from '@tanstack/solid-start-client/hydration'; +import { media } from '@tanstack/solid-start-client/hydration'; +import { never } from '@tanstack/solid-start-client/hydration'; +import { visible } from '@tanstack/solid-start-client/hydration'; +import { VisibleHydrationOptions } from '@tanstack/solid-start-client/hydration'; + +export { condition } + +export { HydrationCondition } + +export { HydrationInteractionEvent } + +export { HydrationInteractionEvents } + +export { HydrationPrefetchStrategy } + +export { HydrationStrategy } + +export { HydrationWhen } + +export { idle } + +export { interaction } + +export { load } + +export { media } + +export { never } + +export { visible } + +export { VisibleHydrationOptions } + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/solid-start/api/index.api.md b/packages/solid-start/api/index.api.md new file mode 100644 index 0000000000..3c6ecad952 --- /dev/null +++ b/packages/solid-start/api/index.api.md @@ -0,0 +1,67 @@ +## API Report File for "@tanstack/solid-start" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/index.d.ts`. Regenerate with `node scripts/api-report.mjs packages/solid-start` after a build. +> +> Imported as: +> +> - `@tanstack/solid-start` (`import`) + +```ts + +import { createClientOnlyFn } from '@tanstack/start-client-core'; +import { createCsrfMiddleware } from '@tanstack/start-client-core'; +import { createIsomorphicFn } from '@tanstack/start-client-core'; +import { createMiddleware } from '@tanstack/start-client-core'; +import { createServerFn } from '@tanstack/start-client-core'; +import { createServerOnlyFn } from '@tanstack/start-client-core'; +import { createStart } from '@tanstack/start-client-core'; +import { Hydrate } from '@tanstack/solid-start-client/Hydrate'; +import { HydrateOptions } from '@tanstack/solid-start-client/Hydrate'; +import { HydrateProps } from '@tanstack/solid-start-client/Hydrate'; +import { HydrationInteractionEvent } from '@tanstack/solid-start-client/Hydrate'; +import { HydrationInteractionEvents } from '@tanstack/solid-start-client/Hydrate'; +import { HydrationPrefetchStrategy } from '@tanstack/solid-start-client/Hydrate'; +import { HydrationStrategy } from '@tanstack/solid-start-client/Hydrate'; +import { HydrationWhen } from '@tanstack/solid-start-client/Hydrate'; + +export { createClientOnlyFn } + +export { createCsrfMiddleware } + +export { createIsomorphicFn } + +export { createMiddleware } + +export { createServerFn } + +export { createServerOnlyFn } + +export { createStart } + +export { Hydrate } + +export { HydrateOptions } + +export { HydrateProps } + +export { HydrationInteractionEvent } + +export { HydrationInteractionEvents } + +export { HydrationPrefetchStrategy } + +export { HydrationStrategy } + +export { HydrationWhen } + +// @public (undocumented) +export function useServerFn) => Promise>(serverFn: T): (...args: Parameters) => ReturnType; + + +export * from "@tanstack/start-client-core"; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/solid-start/api/plugin/rsbuild.api.md b/packages/solid-start/api/plugin/rsbuild.api.md new file mode 100644 index 0000000000..ccd08720f6 --- /dev/null +++ b/packages/solid-start/api/plugin/rsbuild.api.md @@ -0,0 +1,21 @@ +## API Report File for "@tanstack/solid-start" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/plugin/rsbuild.d.ts`. Regenerate with `node scripts/api-report.mjs packages/solid-start` after a build. +> +> Imported as: +> +> - `@tanstack/solid-start/plugin/rsbuild` (`import`) + +```ts + +import { RsbuildPlugin } from '@rsbuild/core'; +import { TanStackStartRsbuildInputConfig } from '@tanstack/start-plugin-core/rsbuild'; + +// @public (undocumented) +export function tanstackStart(options?: TanStackStartRsbuildInputConfig): RsbuildPlugin; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/solid-start/api/plugin/vite.api.md b/packages/solid-start/api/plugin/vite.api.md new file mode 100644 index 0000000000..e0de2dd554 --- /dev/null +++ b/packages/solid-start/api/plugin/vite.api.md @@ -0,0 +1,21 @@ +## API Report File for "@tanstack/solid-start" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/plugin/vite.d.ts`. Regenerate with `node scripts/api-report.mjs packages/solid-start` after a build. +> +> Imported as: +> +> - `@tanstack/solid-start/plugin/vite` (`import`) + +```ts + +import { PluginOption } from 'vite'; +import { TanStackStartViteInputConfig } from '@tanstack/start-plugin-core/vite'; + +// @public (undocumented) +export function tanstackStart(options?: TanStackStartViteInputConfig): Array; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/solid-start/api/server-only.api.md b/packages/solid-start/api/server-only.api.md new file mode 100644 index 0000000000..9429eb7141 --- /dev/null +++ b/packages/solid-start/api/server-only.api.md @@ -0,0 +1,15 @@ +## API Report File for "@tanstack/solid-start" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/server-only.d.ts`. Regenerate with `node scripts/api-report.mjs packages/solid-start` after a build. +> +> Imported as: +> +> - `@tanstack/solid-start/server-only` (`import`) + +```ts + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/solid-start/api/server-rpc.api.md b/packages/solid-start/api/server-rpc.api.md new file mode 100644 index 0000000000..f2d8365fe3 --- /dev/null +++ b/packages/solid-start/api/server-rpc.api.md @@ -0,0 +1,19 @@ +## API Report File for "@tanstack/solid-start" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/server-rpc.d.ts`. Regenerate with `node scripts/api-report.mjs packages/solid-start` after a build. +> +> Imported as: +> +> - `@tanstack/solid-start/server-rpc` (`import`) + +```ts + +import { createServerRpc } from '@tanstack/start-server-core/createServerRpc'; + +export { createServerRpc } + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/solid-start/api/server.api.md b/packages/solid-start/api/server.api.md new file mode 100644 index 0000000000..a0bfcb5350 --- /dev/null +++ b/packages/solid-start/api/server.api.md @@ -0,0 +1,18 @@ +## API Report File for "@tanstack/solid-start" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/server.d.ts`. Regenerate with `node scripts/api-report.mjs packages/solid-start` after a build. +> +> Imported as: +> +> - `@tanstack/solid-start/server` (`import`) + +```ts + + +export * from "@tanstack/solid-start-server"; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/solid-start/api/ssr-rpc.api.md b/packages/solid-start/api/ssr-rpc.api.md new file mode 100644 index 0000000000..1321395fd3 --- /dev/null +++ b/packages/solid-start/api/ssr-rpc.api.md @@ -0,0 +1,19 @@ +## API Report File for "@tanstack/solid-start" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/ssr-rpc.d.ts`. Regenerate with `node scripts/api-report.mjs packages/solid-start` after a build. +> +> Imported as: +> +> - `@tanstack/solid-start/ssr-rpc` (`import`) + +```ts + +import { createSsrRpc } from '@tanstack/start-server-core/createSsrRpc'; + +export { createSsrRpc } + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/start-client-core/api/client-rpc/index.api.md b/packages/start-client-core/api/client-rpc/index.api.md new file mode 100644 index 0000000000..9b0ce39bd4 --- /dev/null +++ b/packages/start-client-core/api/client-rpc/index.api.md @@ -0,0 +1,50 @@ +## API Report File for "@tanstack/start-client-core" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/client-rpc/index.d.ts`. Regenerate with `node scripts/api-report.mjs packages/start-client-core` after a build. +> +> Imported as: +> +> - `@tanstack/start-client-core/client-rpc` (`import`) + +```ts + +// @public (undocumented) +export function createClientRpc(functionId: string): ((...args: Array) => Promise) & { + url: string; + serverFnMeta: ClientFnMeta; + [TSS_SERVER_FUNCTION]: boolean; +}; + +// @public +export const FRAME_HEADER_SIZE = 9; + +// @public (undocumented) +export const FRAME_TYPE_CHUNK = 1; + +// @public (undocumented) +export const FRAME_TYPE_END = 2; + +// @public (undocumented) +export const FRAME_TYPE_ERROR = 3; + +// @public +export const FRAME_TYPE_JSON = 0; + +// @public +export const MAX_FRAME_PAYLOAD_SIZE: number; + +// @public +export const MAX_FRAMED_STREAMS = 1024; + +// @public +export const MAX_UNREAD_RAW_STREAM_BYTES: number; + +// Warnings were encountered during analysis: +// +// dist/esm/client-rpc/createClientRpc.d.ts:4:5 - (ae-forgotten-export) The symbol "ClientFnMeta" needs to be exported by the entry point index.d.ts + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/start-client-core/api/client/index.api.md b/packages/start-client-core/api/client/index.api.md new file mode 100644 index 0000000000..cba034545e --- /dev/null +++ b/packages/start-client-core/api/client/index.api.md @@ -0,0 +1,25 @@ +## API Report File for "@tanstack/start-client-core" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/client/index.d.ts`. Regenerate with `node scripts/api-report.mjs packages/start-client-core` after a build. +> +> Imported as: +> +> - `@tanstack/start-client-core/client` (`import`) + +```ts + +import { AnyRouter } from '@tanstack/router-core'; + +// Warning: (ae-forgotten-export) The symbol "hydrateStart_2" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export const hydrateStart: typeof hydrateStart_2; + + +export * from "@tanstack/router-core/ssr/client"; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/start-client-core/api/hydration.api.md b/packages/start-client-core/api/hydration.api.md new file mode 100644 index 0000000000..b52b2c39a0 --- /dev/null +++ b/packages/start-client-core/api/hydration.api.md @@ -0,0 +1,198 @@ +## API Report File for "@tanstack/start-client-core" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/hydration.d.ts`. Regenerate with `node scripts/api-report.mjs packages/start-client-core` after a build. +> +> Imported as: +> +> - `@tanstack/start-client-core/hydration` (`import`) + +```ts + +// @public (undocumented) +export function clearResolvedGateIdsInMarker(marker: Element): void; + +// Warning: (ae-forgotten-export) The symbol "conditionType" needs to be exported by the entry point hydration.d.ts +// +// @public (undocumented) +export function condition(condition: HydrationCondition): HydrationStrategy; + +// @public (undocumented) +export function createResolvedGate(id: string, when: HydrationWhen): HydrationGateRecord; + +// @public (undocumented) +export function getFallbackHtml(id: string): string | undefined; + +// @public (undocumented) +export function getMarkerGate(marker: Element): HydrationGateRecord | undefined; + +// @public (undocumented) +export function getOrCreateGate(id: string, when: HydrationWhen): HydrationGateRecord; + +// @public (undocumented) +export const hydrateIdAttribute = "data-ts-hydrate-id"; + +// @public (undocumented) +export const hydrateIdSelector = "[data-ts-hydrate-id]"; + +// @public (undocumented) +export const hydrateInteractionEventsAttribute = "data-ts-hydrate-interaction-events"; + +// @public (undocumented) +export const hydrateWhenAttribute = "data-ts-hydrate-when"; + +// @public (undocumented) +export type HydrationCondition = boolean | (() => boolean); + +// @public (undocumented) +export type HydrationGateRecord = HydrationRuntimeGate & { + id: string; + when: HydrationWhen; + promise: Promise; + consumers: number; + resolveListeners: Set<() => void>; +}; + +// @public (undocumented) +export type HydrationInteractionEvent = 'auxclick' | 'click' | 'contextmenu' | 'dblclick' | 'focusin' | 'keydown' | 'keyup' | 'mousedown' | 'mouseenter' | 'mouseover' | 'mouseup' | 'pointerdown' | 'pointerenter' | 'pointerover' | 'pointerup'; + +// @public (undocumented) +export type HydrationInteractionEvents = HydrationInteractionEvent | ReadonlyArray; + +// @public (undocumented) +export type HydrationMarkerAttributes = Record; + +// @public (undocumented) +export type HydrationPrefetchContext = { + element: Element | null; + signal: AbortSignal; + preload: () => Promise; + waitFor: (strategy: HydrationPrefetchStrategy) => Promise; +}; + +// @public (undocumented) +export type HydrationPrefetchFunction = (context: HydrationPrefetchContext) => void | Promise; + +// @public (undocumented) +export type HydrationPrefetchStrategy = HydrationStrategy; + +// @public (undocumented) +export type HydrationPrefetchWaitReason = 'prefetch' | 'hydrate' | 'abort'; + +// @public (undocumented) +export type HydrationPrefetchWhen = Exclude; + +// @public (undocumented) +export type HydrationRuntimeContext = { + element: Element | null; + gate?: HydrationRuntimeGate; + prefetch?: () => void; + delegated?: boolean; +}; + +// @public (undocumented) +export type HydrationRuntimeGate = { + id?: string; + when?: HydrationWhen; + resolved: boolean; + resolve: () => void; +}; + +// @public (undocumented) +export type HydrationStrategy = { + _t?: TWhen; + readonly '~types'?: HydrationStrategyTypes; + _d?: () => boolean; + _s?: (context: HydrationRuntimeContext) => void | (() => void); + _o?: (id: string) => void; + _a?: () => HydrationMarkerAttributes | undefined; +}; + +// @public (undocumented) +export type HydrationStrategyTypes = { + when: TWhen; + canPrefetch: TCanPrefetch; +}; + +// @public (undocumented) +export type HydrationStrategyWithRenderer = TStrategy & { + _h: TRenderer; +}; + +// @public (undocumented) +export type HydrationWhen = 'load' | 'idle' | 'visible' | 'media' | 'interaction' | 'condition' | 'never' | 'dynamic'; + +// Warning: (ae-forgotten-export) The symbol "idleType" needs to be exported by the entry point hydration.d.ts +// +// @public (undocumented) +export function idle(options?: IdleHydrationOptions): HydrationPrefetchStrategy; + +// @public (undocumented) +export type IdleHydrationOptions = { + timeout?: number; +}; + +// Warning: (ae-forgotten-export) The symbol "InteractionHydrationOptions" needs to be exported by the entry point hydration.d.ts +// Warning: (ae-forgotten-export) The symbol "interactionType" needs to be exported by the entry point hydration.d.ts +// +// @public (undocumented) +export function interaction(options?: InteractionHydrationOptions): HydrationPrefetchStrategy; + +// @public (undocumented) +export function listenForDelegatedHydrationIntent(element: Element, context: HydrationRuntimeContext): (() => void) | undefined; + +// Warning: (ae-forgotten-export) The symbol "loadType" needs to be exported by the entry point hydration.d.ts +// +// @public (undocumented) +export function load(): HydrationPrefetchStrategy; + +// Warning: (ae-forgotten-export) The symbol "mediaType" needs to be exported by the entry point hydration.d.ts +// +// @public (undocumented) +export function media(query: string): HydrationPrefetchStrategy; + +// Warning: (ae-forgotten-export) The symbol "neverType" needs to be exported by the entry point hydration.d.ts +// +// @public (undocumented) +export function never(): HydrationStrategy; + +// @public (undocumented) +export function onGateResolve(gate: HydrationGateRecord, listener: () => void): () => void; + +// @public (undocumented) +export function releaseGate(gate: HydrationGateRecord): void; + +// @public (undocumented) +export function resolveHydrationMarker(marker: Element): void; + +// @public (undocumented) +export function runHydrationStrategyCleanup(cleanup: void | (() => void)): (() => void) | undefined; + +// @public (undocumented) +export function saveFallbackHtml(id: string, element: Element): void; + +// Warning: (ae-forgotten-export) The symbol "visibleType" needs to be exported by the entry point hydration.d.ts +// +// @public (undocumented) +export function visible(options?: VisibleHydrationOptions): HydrationPrefetchStrategy; + +// @public (undocumented) +export type VisibleHydrationOptions = { + rootMargin?: string; + threshold?: number | Array; +}; + +// @public (undocumented) +export function waitForHydrationPrefetchStrategy(strategy: HydrationPrefetchStrategy, options: { + element: Element | null; + signal: AbortSignal; + onHydrate: (listener: () => void) => () => void; +}): Promise; + +// @public (undocumented) +export function withHydrationRenderer(strategy: TStrategy, renderer: TRenderer): HydrationStrategyWithRenderer; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/start-client-core/api/hydration/constants.api.md b/packages/start-client-core/api/hydration/constants.api.md new file mode 100644 index 0000000000..5b286c96f3 --- /dev/null +++ b/packages/start-client-core/api/hydration/constants.api.md @@ -0,0 +1,24 @@ +## API Report File for "@tanstack/start-client-core" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/hydration/constants.d.ts`. Regenerate with `node scripts/api-report.mjs packages/start-client-core` after a build. +> +> Imported as: +> +> - `@tanstack/start-client-core/hydration/constants` (`import`) + +```ts + +// @public (undocumented) +export const hydrateIdAttribute = "data-ts-hydrate-id"; + +// @public (undocumented) +export const hydrateInteractionEventsAttribute = "data-ts-hydrate-interaction-events"; + +// @public (undocumented) +export const hydrateWhenAttribute = "data-ts-hydrate-when"; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/start-client-core/api/hydration/runtime.api.md b/packages/start-client-core/api/hydration/runtime.api.md new file mode 100644 index 0000000000..ca77bdf7ab --- /dev/null +++ b/packages/start-client-core/api/hydration/runtime.api.md @@ -0,0 +1,68 @@ +## API Report File for "@tanstack/start-client-core" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/hydration/runtime.d.ts`. Regenerate with `node scripts/api-report.mjs packages/start-client-core` after a build. +> +> Imported as: +> +> - `@tanstack/start-client-core/hydration/runtime` (`import`) + +```ts + +// @public (undocumented) +export function clearResolvedGateIdsInMarker(marker: Element): void; + +// Warning: (ae-forgotten-export) The symbol "HydrationWhen" needs to be exported by the entry point runtime.d.ts +// +// @public (undocumented) +export function createResolvedGate(id: string, when: HydrationWhen): HydrationGateRecord; + +// @public (undocumented) +export function getFallbackHtml(id: string): string | undefined; + +// @public (undocumented) +export function getMarkerGate(marker: Element): HydrationGateRecord | undefined; + +// @public (undocumented) +export function getOrCreateGate(id: string, when: HydrationWhen): HydrationGateRecord; + +// Warning: (ae-forgotten-export) The symbol "HydrationRuntimeGate" needs to be exported by the entry point runtime.d.ts +// +// @public (undocumented) +export type HydrationGateRecord = HydrationRuntimeGate & { + id: string; + when: HydrationWhen; + promise: Promise; + consumers: number; + resolveListeners: Set<() => void>; +}; + +// @public (undocumented) +export function onGateResolve(gate: HydrationGateRecord, listener: () => void): () => void; + +// @public (undocumented) +export function releaseGate(gate: HydrationGateRecord): void; + +// @public (undocumented) +export function resolveHydrationMarker(marker: Element): void; + +// @public (undocumented) +export function runHydrationStrategyCleanup(cleanup: void | (() => void)): (() => void) | undefined; + +// @public (undocumented) +export function saveFallbackHtml(id: string, element: Element): void; + +// Warning: (ae-forgotten-export) The symbol "HydrationPrefetchStrategy" needs to be exported by the entry point runtime.d.ts +// Warning: (ae-forgotten-export) The symbol "HydrationPrefetchWaitReason" needs to be exported by the entry point runtime.d.ts +// +// @public (undocumented) +export function waitForHydrationPrefetchStrategy(strategy: HydrationPrefetchStrategy, options: { + element: Element | null; + signal: AbortSignal; + onHydrate: (listener: () => void) => () => void; +}): Promise; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/start-client-core/api/index.api.md b/packages/start-client-core/api/index.api.md new file mode 100644 index 0000000000..2989528cfe --- /dev/null +++ b/packages/start-client-core/api/index.api.md @@ -0,0 +1,736 @@ +## API Report File for "@tanstack/start-client-core" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/index.d.ts`. Regenerate with `node scripts/api-report.mjs packages/start-client-core` after a build. +> +> Imported as: +> +> - `@tanstack/start-client-core` (`import`) + +```ts + +import { AnyContext } from '@tanstack/router-core'; +import { AnyRoute } from '@tanstack/router-core'; +import { AnyRouter } from '@tanstack/router-core'; +import { AnySerializationAdapter } from '@tanstack/router-core'; +import { AnyValidator } from '@tanstack/router-core'; +import { Assign } from '@tanstack/router-core'; +import { Awaitable } from '@tanstack/router-core'; +import { ClientOnlyFn } from '@tanstack/start-fn-stubs'; +import { Constrain } from '@tanstack/router-core'; +import { createClientOnlyFn } from '@tanstack/start-fn-stubs'; +import { createIsomorphicFn } from '@tanstack/start-fn-stubs'; +import { createServerOnlyFn } from '@tanstack/start-fn-stubs'; +import { defaultSerovalDeserializerPlugins } from '@tanstack/router-core/ssr/client'; +import { Expand } from '@tanstack/router-core'; +import { hydrate } from '@tanstack/router-core/ssr/client'; +import { IntersectAssign } from '@tanstack/router-core'; +import { IsomorphicFn } from '@tanstack/start-fn-stubs'; +import { IsomorphicFnBase } from '@tanstack/start-fn-stubs'; +import { json } from '@tanstack/router-core/ssr/client'; +import { JsonResponse } from '@tanstack/router-core/ssr/client'; +import { mergeHeaders } from '@tanstack/router-core/ssr/client'; +import { OnRawStreamCallback } from '@tanstack/router-core'; +import { Plugin as Plugin_2 } from 'seroval'; +import { RawStream } from '@tanstack/router-core'; +import { Register } from '@tanstack/router-core'; +import { RegisteredRouter } from '@tanstack/router-core'; +import { RegisteredSerializableInput } from '@tanstack/router-core'; +import { ResolveAllParamsFromParent } from '@tanstack/router-core'; +import { ResolveValidatorInput } from '@tanstack/router-core'; +import { ResolveValidatorOutput } from '@tanstack/router-core'; +import { ServerOnlyFn } from '@tanstack/start-fn-stubs'; +import { SSROption } from '@tanstack/router-core'; +import { ValidateSerializable } from '@tanstack/router-core'; +import { ValidateSerializableInput } from '@tanstack/router-core'; +import { Validator } from '@tanstack/router-core'; + +// @public (undocumented) +export type AnyFunctionMiddleware = FunctionMiddlewareWithTypes; + +// @public (undocumented) +export type AnyRequestMiddleware = RequestMiddlewareWithTypes; + +// @public (undocumented) +export type AnyStartInstance = StartInstance; + +// @public (undocumented) +export type AnyStartInstanceOptions = StartInstanceOptions; + +// @public +export type AssignAllClientContextBeforeNext = unknown extends TClientContext ? TClientContext : Assign, TClientContext>; + +// @public (undocumented) +export type AssignAllMethodContext = ResolveAllServerContext>; + +// Warning: (ae-forgotten-export) The symbol "AnyServerFn" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type AssignAllMiddleware = TMiddlewares extends readonly [infer TMiddleware, ...infer TRest] ? TMiddleware extends AnyFunctionMiddleware | AnyRequestMiddleware | AnyServerFn ? AssignAllMiddleware> : TAcc : TAcc; + +// @public +export interface ClientFnMeta { + id: string; +} + +export { ClientOnlyFn } + +// @public (undocumented) +export type CompiledFetcherFn = { + (opts: CompiledFetcherFnOptions & ServerFnBaseOptions): Promise; + url: string; + serverFnMeta: ServerFnMeta; +}; + +// @public (undocumented) +export type CompiledFetcherFnOptions = { + method: Method; + data: unknown; + headers?: HeadersInit; + signal?: AbortSignal; + fetch?: CustomFetch; + context?: any; +}; + +export { createClientOnlyFn } + +// Warning: (ae-forgotten-export) The symbol "CreateCsrfMiddleware" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export const createCsrfMiddleware: CreateCsrfMiddleware; + +// Warning: (ae-forgotten-export) The symbol "CustomHandlerFunctionsRecord" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type CreateHandlersFn = (opts: CreateMethodFnOpts) => CustomHandlerFunctionsRecord; + +export { createIsomorphicFn } + +// @public (undocumented) +export interface CreateMethodFnOpts { + // (undocumented) + ANY?: RouteMethodHandler; + // (undocumented) + DELETE?: RouteMethodHandler; + // (undocumented) + GET?: RouteMethodHandler; + // (undocumented) + HEAD?: RouteMethodHandler; + // (undocumented) + OPTIONS?: RouteMethodHandler; + // (undocumented) + PATCH?: RouteMethodHandler; + // (undocumented) + POST?: RouteMethodHandler; + // (undocumented) + PUT?: RouteMethodHandler; +} + +// Warning: (ae-forgotten-export) The symbol "CreateMiddlewareFn" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export const createMiddleware: CreateMiddlewareFn<{}>; + +// @public +export function createNullProtoObject(source?: T): { + [K in keyof T]: T[K]; +}; + +// Warning: (ae-forgotten-export) The symbol "CreateServerFn" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export const createServerFn: CreateServerFn; + +export { createServerOnlyFn } + +// @public (undocumented) +export const createStart: = [], TDefaultSsr extends SSROption = SSROption, const TRequestMiddlewares extends ReadonlyArray = [], const TFunctionMiddlewares extends ReadonlyArray = []>(getOptions: () => Promise, "~types">> | Omit, "~types">) => StartInstance; + +// @public (undocumented) +export type CsrfMatcher = TValue | Array | ((value: TValue | (string & {}), ctx: RequestServerOptions) => boolean | Promise); + +// @public (undocumented) +export interface CsrfMiddlewareOptions { + allowRequestsWithoutOriginCheck?: boolean; + failureResponse?: Response | ((ctx: RequestServerOptions) => Response | Promise); + filter?: (ctx: RequestServerOptions) => boolean | Promise; + origin?: CsrfMatcher; + referer?: boolean | ((referer: string, ctx: RequestServerOptions) => boolean | Promise); + secFetchSite?: CsrfMatcher; +} + +// @public (undocumented) +export type CsrfSecFetchSite = 'same-origin' | 'same-site' | 'cross-site' | 'none'; + +// @public (undocumented) +export const csrfSymbol: unique symbol; + +// @public (undocumented) +export type CustomFetch = typeof fetch extends (...args: infer A) => infer R ? (...args: A) => R : never; + +export { defaultSerovalDeserializerPlugins } + +// @public (undocumented) +export function executeMiddleware(middlewares: Array, env: 'client' | 'server', opts: ServerFnMiddlewareOptions): Promise; + +// @public (undocumented) +export function execValidator(validator: AnyValidator, input: unknown): Promise; + +// @public (undocumented) +export type Fetcher = undefined extends IntersectAllValidatorInputs ? OptionalFetcher : RequiredFetcher; + +// @public (undocumented) +export type FetcherBaseOptions = { + headers?: HeadersInit; + signal?: AbortSignal; + fetch?: CustomFetch; +}; + +// @public (undocumented) +export function flattenMiddlewares(middlewares: Array, maxDepth?: number, seen?: Set): Array; + +// @public +export const FRAME_HEADER_SIZE = 9; + +// @public (undocumented) +export type FunctionClientResultWithContext = { + 'use functions must return the result of next()': true; + context: Expand>; + sendContext: Expand>; + headers: HeadersInit; + fetch?: CustomFetch; +}; + +// @public (undocumented) +export interface FunctionMiddleware extends FunctionMiddlewareAfterMiddleware { + // (undocumented) + middleware: (middlewares: Constrain>) => FunctionMiddlewareAfterMiddleware; +} + +// @public (undocumented) +export interface FunctionMiddlewareAfterClient extends FunctionMiddlewareWithTypes, FunctionMiddlewareServer { +} + +// @public (undocumented) +export interface FunctionMiddlewareAfterMiddleware extends FunctionMiddlewareWithTypes, FunctionMiddlewareServer, FunctionMiddlewareClient, FunctionMiddlewareValidator { +} + +// @public (undocumented) +export interface FunctionMiddlewareAfterServer extends FunctionMiddlewareWithTypes { +} + +// @public (undocumented) +export interface FunctionMiddlewareAfterValidator extends FunctionMiddlewareWithTypes, FunctionMiddlewareServer, FunctionMiddlewareClient { +} + +// @public (undocumented) +export interface FunctionMiddlewareClient { + // (undocumented) + client: (client: FunctionMiddlewareClientFn) => FunctionMiddlewareAfterClient; +} + +// @public (undocumented) +export type FunctionMiddlewareClientFn = (options: FunctionMiddlewareClientFnOptions) => FunctionMiddlewareClientFnResult; + +// @public (undocumented) +export interface FunctionMiddlewareClientFnOptions { + // (undocumented) + context: Expand>; + // (undocumented) + data: Expand>; + // (undocumented) + fetch?: CustomFetch; + // (undocumented) + filename: string; + // (undocumented) + method: Method; + // (undocumented) + next: FunctionMiddlewareClientNextFn; + // (undocumented) + sendContext: Expand>; + // (undocumented) + serverFnMeta: ClientFnMeta; + // (undocumented) + signal: AbortSignal; +} + +// @public (undocumented) +export type FunctionMiddlewareClientFnResult = Promise> | FunctionClientResultWithContext; + +// @public (undocumented) +export type FunctionMiddlewareClientNextFn = (ctx?: { + context?: TNewClientContext; + sendContext?: ValidateSerializableInput; + headers?: HeadersInit; + fetch?: CustomFetch; +}) => Promise>; + +// @public (undocumented) +export interface FunctionMiddlewareOptions { + // (undocumented) + client?: FunctionMiddlewareClientFn; + // (undocumented) + middleware?: TMiddlewares; + // (undocumented) + server?: FunctionMiddlewareServerFn; + // Warning: (ae-forgotten-export) The symbol "ConstrainValidator" needs to be exported by the entry point index.d.ts + // + // (undocumented) + validator?: ConstrainValidator; +} + +// @public (undocumented) +export interface FunctionMiddlewareServer { + // (undocumented) + server: (server: FunctionMiddlewareServerFn) => FunctionMiddlewareAfterServer; +} + +// @public (undocumented) +export type FunctionMiddlewareServerFn = (options: FunctionMiddlewareServerFnOptions) => FunctionMiddlewareServerFnResult; + +// @public (undocumented) +export interface FunctionMiddlewareServerFnOptions { + // Warning: (ae-forgotten-export) The symbol "AssignAllServerFnContext" needs to be exported by the entry point index.d.ts + // + // (undocumented) + context: Expand>; + // (undocumented) + data: Expand>; + // (undocumented) + method: Method; + // (undocumented) + next: FunctionMiddlewareServerNextFn; + // (undocumented) + serverFnMeta: ServerFnMeta; + // (undocumented) + signal: AbortSignal; +} + +// @public (undocumented) +export type FunctionMiddlewareServerFnResult = Promise> | FunctionServerResultWithContext; + +// @public (undocumented) +export type FunctionMiddlewareServerNextFn = (ctx?: { + context?: TNewServerContext; + sendContext?: ValidateSerializableInput; +}) => Promise>; + +// @public (undocumented) +export interface FunctionMiddlewareValidator { + // (undocumented) + validator: (validator: ConstrainValidator) => FunctionMiddlewareAfterValidator; +} + +// @public (undocumented) +export interface FunctionMiddlewareWithTypes { + // Warning: (ae-forgotten-export) The symbol "FunctionMiddlewareTypes" needs to be exported by the entry point index.d.ts + // + // (undocumented) + '~types': FunctionMiddlewareTypes; + // (undocumented) + options: FunctionMiddlewareOptions; +} + +// @public (undocumented) +export type FunctionServerResultWithContext = { + 'use functions must return the result of next()': true; + '~types': { + context: TServerContext; + sendContext: TSendContext; + }; + context: Expand>; + sendContext: Expand>; +}; + +// @public (undocumented) +export function getCsrfRequestValidationResult(opts: CsrfMiddlewareOptions, ctx: RequestServerOptions): Promise; + +// @public +export function getDefaultSerovalPlugins(signal?: AbortSignal): Array>; + +// Warning: (ae-forgotten-export) The symbol "AssignAllServerRequestContext" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export const getGlobalStartContext: () => Expand> | undefined; + +// @public (undocumented) +export const getRouterInstance: () => Awaitable; + +// @public +export function getSerovalPlugins(routerPlugins: Array>): Array>; + +// @public (undocumented) +export interface HandlersFnOpts { + // (undocumented) + createHandlers: CreateHandlersFn; +} + +export { hydrate } + +// Warning: (ae-forgotten-export) The symbol "IntersectAllMiddleware" needs to be exported by the entry point index.d.ts +// +// @public +export type IntersectAllValidatorInputs = unknown extends TInputValidator ? TInputValidator : TInputValidator extends undefined ? IntersectAllMiddleware : IntersectAssign, ResolveValidatorInput>; + +// @public +export type IntersectAllValidatorOutputs = unknown extends TInputValidator ? TInputValidator : TInputValidator extends undefined ? IntersectAllMiddleware : IntersectAssign, Awaited>>; + +// @public (undocumented) +export function isCsrfRequestAllowed(opts: CsrfMiddlewareOptions, ctx: RequestServerOptions): Promise; + +export { IsomorphicFn } + +export { IsomorphicFnBase } + +export { json } + +export { JsonResponse } + +export { mergeHeaders } + +// @public (undocumented) +export type MergeMethodMiddlewares = TServerMiddlewares extends ReadonlyArray ? TMethodMiddlewares extends ReadonlyArray ? readonly [...TServerMiddlewares, ...TMethodMiddlewares] : TServerMiddlewares : TMethodMiddlewares; + +// @public (undocumented) +export type Method = 'GET' | 'POST'; + +// @public (undocumented) +export type MiddlewareFn = (ctx: ServerFnMiddlewareOptions & { + next: NextFn; +}) => Promise; + +// @public (undocumented) +export type NextFn = (ctx: ServerFnMiddlewareResult) => Promise; + +export { OnRawStreamCallback } + +// Warning: (ae-forgotten-export) The symbol "FetcherBase" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export interface OptionalFetcher extends FetcherBase { + // Warning: (ae-forgotten-export) The symbol "OptionalFetcherDataOptions" needs to be exported by the entry point index.d.ts + // + // (undocumented) + (options?: OptionalFetcherDataOptions): Promise>; +} + +export { RawStream } + +export { Register } + +// @public (undocumented) +export interface RequestMiddleware extends RequestMiddlewareAfterMiddleware { + // (undocumented) + middleware: (middlewares: Constrain>) => RequestMiddlewareAfterMiddleware; +} + +// @public (undocumented) +export interface RequestMiddlewareAfterMiddleware extends RequestMiddlewareWithTypes, RequestMiddlewareServer { +} + +// @public (undocumented) +export interface RequestMiddlewareAfterServer extends RequestMiddlewareWithTypes { +} + +// @public (undocumented) +export interface RequestMiddlewareOptions { + // (undocumented) + middleware?: TMiddlewares; + // (undocumented) + server?: RequestServerFn; +} + +// @public (undocumented) +export interface RequestMiddlewareServer { + // (undocumented) + server: (fn: RequestServerFn) => RequestMiddlewareAfterServer; +} + +// @public (undocumented) +export type RequestMiddlewareServerFnResult = Promise | Response> | RequestServerResult | Response; + +// @public (undocumented) +export interface RequestMiddlewareWithTypes { + // Warning: (ae-forgotten-export) The symbol "RequestMiddlewareTypes" needs to be exported by the entry point index.d.ts + // + // (undocumented) + '~types': RequestMiddlewareTypes; + // (undocumented) + options: RequestMiddlewareOptions; +} + +// @public (undocumented) +export type RequestServerFn = (options: RequestServerOptions) => RequestMiddlewareServerFnResult; + +// Warning: (ae-forgotten-export) The symbol "RequestServerNextFnResult" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type RequestServerNextFn = (options?: RequestServerNextFnOptions) => RequestServerNextFnResult; + +// @public (undocumented) +export interface RequestServerNextFnOptions { + // (undocumented) + context?: TServerContext; +} + +// @public (undocumented) +export interface RequestServerOptions { + // (undocumented) + context: Expand>; + handlerType: 'serverFn' | 'router'; + // (undocumented) + next: RequestServerNextFn; + // (undocumented) + pathname: string; + // (undocumented) + request: Request; + serverFnMeta?: ServerFnMeta; +} + +// @public (undocumented) +export interface RequestServerResult { + // (undocumented) + context: Expand>; + // (undocumented) + pathname: string; + // (undocumented) + request: Request; + // (undocumented) + response: Response; +} + +// @public (undocumented) +export interface RequiredFetcher extends FetcherBase { + // Warning: (ae-forgotten-export) The symbol "RequiredFetcherDataOptions" needs to be exported by the entry point index.d.ts + // + // (undocumented) + (opts: RequiredFetcherDataOptions): Promise>; +} + +// @public (undocumented) +export type ResolveAllServerContext = unknown extends TParentRoute ? AssignAllServerRequestContext : Assign>; + +// @public (undocumented) +export type RouteMethod = 'ANY' | 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD'; + +// @public (undocumented) +export interface RouteMethodBuilderOptions { + // (undocumented) + handler?: RouteMethodHandlerFn; + // (undocumented) + middleware?: Constrain>; +} + +// @public (undocumented) +export type RouteMethodHandler = RouteMethodHandlerFn | RouteMethodBuilderOptions; + +// @public (undocumented) +export interface RouteMethodHandlerCtx { + // (undocumented) + context: Expand>; + // (undocumented) + next: (options?: { + context?: TContext; + }) => RouteMethodNextResult; + // (undocumented) + params: Expand>; + // (undocumented) + pathname: TFullPath; + // (undocumented) + request: Request; +} + +// @public (undocumented) +export type RouteMethodHandlerFn = (ctx: RouteMethodHandlerCtx) => RouteMethodResult | Promise>; + +// @public (undocumented) +export type RouteMethodNextResult = { + isNext: true; + context: TContext; +}; + +// @public (undocumented) +export type RouteMethodResult = Response | undefined | RouteMethodNextResult; + +// @public (undocumented) +export interface RouterEntry { + // (undocumented) + getRouter: () => Awaitable; +} + +// @public (undocumented) +export interface RouteServerOptions { + // (undocumented) + handlers?: Constrain>> | ((opts: HandlersFnOpts) => CustomHandlerFunctionsRecord)>; + // (undocumented) + middleware?: Constrain>; +} + +// @public (undocumented) +export type RscStream = { + __cacheState: T; +}; + +// @public +export function safeObjectMerge>(target: T | undefined, source: Record | null | undefined): T; + +// Warning: (ae-forgotten-export) The symbol "ServerFnReturnType" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type ServerFn = (ctx: ServerFnCtx) => ServerFnReturnType; + +// @public (undocumented) +export type ServerFnBaseOptions = { + method: TMethod; + strict?: TStrict; + middleware?: Constrain>; + validator?: ConstrainValidator; + extractedFn?: CompiledFetcherFn; + serverFn?: ServerFn; +}; + +// Warning: (ae-forgotten-export) The symbol "ServerFnWithTypes" needs to be exported by the entry point index.d.ts +// Warning: (ae-forgotten-export) The symbol "ServerFnMiddleware" needs to be exported by the entry point index.d.ts +// Warning: (ae-forgotten-export) The symbol "ServerFnValidator" needs to be exported by the entry point index.d.ts +// Warning: (ae-forgotten-export) The symbol "ServerFnHandler" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export interface ServerFnBuilder extends ServerFnWithTypes, ServerFnMiddleware, ServerFnValidator, ServerFnHandler { + // (undocumented) + (options?: ServerFnOptions): ServerFnBuilder; + // (undocumented) + options: ServerFnBaseOptions; +} + +// @public (undocumented) +export interface ServerFnCtx { + // (undocumented) + context: Expand>; + // (undocumented) + data: Expand>; + // (undocumented) + method: TMethod; + // (undocumented) + serverFnMeta: ServerFnMeta; +} + +// @public +export interface ServerFnMeta extends ClientFnMeta { + filename: string; + name: string; +} + +// @public (undocumented) +export type ServerFnMiddlewareOptions = { + method: Method; + data: any; + headers?: HeadersInit; + signal?: AbortSignal; + sendContext?: any; + context?: any; + serverFnMeta: ClientFnMeta; + fetch?: CustomFetch; +}; + +// @public (undocumented) +export type ServerFnMiddlewareResult = ServerFnMiddlewareOptions & { + result?: unknown; + error?: unknown; +}; + +// @public (undocumented) +export interface ServerFnOptions { + // (undocumented) + method?: TMethod; + // (undocumented) + strict?: TStrict; +} + +// @public (undocumented) +export type ServerFnStrict = boolean | { + input?: boolean; + output?: boolean; +}; + +// @public (undocumented) +export type ServerFnStrictInput = TStrict extends false ? false : TStrict extends { + input: infer TInput extends boolean; +} ? TInput : true; + +// @public (undocumented) +export type ServerFnStrictOutput = TStrict extends false ? false : TStrict extends { + output: infer TOutput extends boolean; +} ? TOutput : true; + +export { ServerOnlyFn } + +// @public (undocumented) +export interface StartEntry { + // (undocumented) + startInstance: AnyStartInstance | undefined; +} + +// @public (undocumented) +export interface StartInstance { + // (undocumented) + createMiddleware: CreateMiddlewareFn; + // (undocumented) + getOptions: () => Promise> | StartInstanceOptions; +} + +// @public (undocumented) +export interface StartInstanceOptions { + // Warning: (ae-forgotten-export) The symbol "StartInstanceTypes" needs to be exported by the entry point index.d.ts + // + // (undocumented) + '~types': StartInstanceTypes; + // (undocumented) + defaultSsr?: TDefaultSsr; + // (undocumented) + functionMiddleware?: TFunctionMiddlewares; + // (undocumented) + requestMiddleware?: TRequestMiddlewares; + // (undocumented) + serializationAdapters?: TSerializationAdapters; + serverFns?: { + fetch?: CustomFetch; + }; +} + +// @public +export function trackPostProcessPromise(promise: Promise): void; + +// @public +export const TSS_CONTENT_TYPE_FRAMED = "application/x-tss-framed"; + +// @public +export const TSS_CONTENT_TYPE_FRAMED_VERSIONED = "application/x-tss-framed; v=1"; + +// @public (undocumented) +export const TSS_FORMDATA_CONTEXT = "__TSS_CONTEXT"; + +// @public +export const TSS_FRAMED_PROTOCOL_VERSION = 1; + +// @public (undocumented) +export const TSS_SERVER_FUNCTION: unique symbol; + +// @public (undocumented) +export const X_TSS_CONTEXT = "x-tss-context"; + +// @public (undocumented) +export const X_TSS_RAW_RESPONSE = "x-tss-raw"; + +// @public (undocumented) +export const X_TSS_SERIALIZED = "x-tss-serialized"; + +// Warnings were encountered during analysis: +// +// dist/esm/createMiddleware.d.ts:100:5 - (ae-forgotten-export) The symbol "AssignAllClientSendContext" needs to be exported by the entry point index.d.ts +// dist/esm/createMiddleware.d.ts:131:5 - (ae-forgotten-export) The symbol "AssignAllClientContextAfterNext" needs to be exported by the entry point index.d.ts +// dist/esm/createMiddleware.d.ts:132:5 - (ae-forgotten-export) The symbol "AssignAllServerSendContext" needs to be exported by the entry point index.d.ts + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/start-fn-stubs/api/index.api.md b/packages/start-fn-stubs/api/index.api.md new file mode 100644 index 0000000000..211f9c0e0c --- /dev/null +++ b/packages/start-fn-stubs/api/index.api.md @@ -0,0 +1,49 @@ +## API Report File for "@tanstack/start-fn-stubs" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/index.d.ts`. Regenerate with `node scripts/api-report.mjs packages/start-fn-stubs` after a build. +> +> Imported as: +> +> - `@tanstack/start-fn-stubs` (`import`) + +```ts + +// @public (undocumented) +export interface ClientOnlyFn, TClient> extends IsomorphicFn { + // (undocumented) + server: (serverImpl: (...args: TArgs) => TServer) => IsomorphicFn; +} + +// Warning: (ae-forgotten-export) The symbol "EnvOnlyFn" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export const createClientOnlyFn: EnvOnlyFn; + +// @public (undocumented) +export function createIsomorphicFn(): IsomorphicFnBase; + +// @public (undocumented) +export const createServerOnlyFn: EnvOnlyFn; + +// @public (undocumented) +export type IsomorphicFn = [], TServer = undefined, TClient = undefined> = (...args: TArgs) => TServer | TClient; + +// @public (undocumented) +export interface IsomorphicFnBase { + // (undocumented) + client: , TClient>(clientImpl: (...args: TArgs) => TClient) => ClientOnlyFn; + // (undocumented) + server: , TServer>(serverImpl: (...args: TArgs) => TServer) => ServerOnlyFn; +} + +// @public (undocumented) +export interface ServerOnlyFn, TServer> extends IsomorphicFn { + // (undocumented) + client: (clientImpl: (...args: TArgs) => TClient) => IsomorphicFn; +} + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/start-plugin-core/api/index.api.md b/packages/start-plugin-core/api/index.api.md new file mode 100644 index 0000000000..61816967fb --- /dev/null +++ b/packages/start-plugin-core/api/index.api.md @@ -0,0 +1,113 @@ +## API Report File for "@tanstack/start-plugin-core" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/index.d.ts`. Regenerate with `node scripts/api-report.mjs packages/start-plugin-core` after a build. +> +> Imported as: +> +> - `@tanstack/start-plugin-core` (`import`) + +```ts + +import type * as babel_2 from '@babel/core'; +import { CodeSplittingOptions } from '@tanstack/router-plugin'; +import { GeneratorPlugin } from '@tanstack/router-generator'; +import type * as t from '@babel/types'; +import { VirtualRootRoute } from '@tanstack/virtual-file-routes'; +import { z } from 'zod'; + +// @public (undocumented) +export const START_ENVIRONMENT_NAMES: { + readonly server: "ssr"; + readonly client: "client"; +}; + +// @public (undocumented) +export interface StartCompilerImportTransform { + // (undocumented) + detect: RegExp; + // Warning: (ae-forgotten-export) The symbol "StartCompilerEnvironment" needs to be exported by the entry point index.d.ts + // + // (undocumented) + environment?: StartCompilerEnvironment | Array | undefined; + // Warning: (ae-forgotten-export) The symbol "StartCompilerImportTransformImport" needs to be exported by the entry point index.d.ts + // + // (undocumented) + imports: Array; + // (undocumented) + name: string; + // (undocumented) + order?: 'pre' | 'post' | undefined; + // (undocumented) + transform: (candidates: Array, context: StartCompilerTransformContext) => void; +} + +// @public (undocumented) +export interface StartCompilerTransformCandidate { + // (undocumented) + path: babel_2.NodePath; +} + +// @public (undocumented) +export interface StartCompilerTransformContext { + // (undocumented) + readonly ast: t.File; + // (undocumented) + readonly code: string; + // (undocumented) + readonly env: StartCompilerEnvironment; + // (undocumented) + readonly envName: string; + // Warning: (ae-forgotten-export) The symbol "CompileStartFrameworkOptions" needs to be exported by the entry point index.d.ts + // + // (undocumented) + readonly framework: CompileStartFrameworkOptions; + // (undocumented) + readonly id: string; + // (undocumented) + readonly mode: 'dev' | 'build'; + // (undocumented) + parseExpression: (code: string) => t.Expression; + // (undocumented) + readonly providerEnvName: string; + // (undocumented) + readonly root: string; + // (undocumented) + readonly types: typeof t; + // (undocumented) + warn?: (message: string) => void; +} + +// @public (undocumented) +export interface TanStackStartCoreOptions { + // (undocumented) + compilerTransforms?: Array | undefined; + // (undocumented) + defaultEntryPaths: { + client: string; + server: string; + start: string; + }; + // (undocumented) + framework: CompileStartFrameworkOptions; + // (undocumented) + providerEnvironmentName: string; + // Warning: (ae-forgotten-export) The symbol "SerializationAdapterConfig" needs to be exported by the entry point index.d.ts + // + // (undocumented) + serializationAdapters?: Array | undefined; + // (undocumented) + serverFnProviderModuleDirectives?: ReadonlyArray | undefined; + // (undocumented) + ssrIsProvider: boolean; +} + +// Warning: (ae-forgotten-export) The symbol "TanStackStartOptionsInput" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type TanStackStartInputConfig = TanStackStartOptionsInput; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/start-plugin-core/api/rsbuild/index.api.md b/packages/start-plugin-core/api/rsbuild/index.api.md new file mode 100644 index 0000000000..6c73c33ed9 --- /dev/null +++ b/packages/start-plugin-core/api/rsbuild/index.api.md @@ -0,0 +1,122 @@ +## API Report File for "@tanstack/start-plugin-core" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/rsbuild/index.d.ts`. Regenerate with `node scripts/api-report.mjs packages/start-plugin-core` after a build. +> +> Imported as: +> +> - `@tanstack/start-plugin-core/rsbuild` (`import`) + +```ts + +import type * as babel_2 from '@babel/core'; +import { CodeSplittingOptions } from '@tanstack/router-plugin'; +import { EnvironmentConfig } from '@rsbuild/core'; +import { GeneratorPlugin } from '@tanstack/router-generator'; +import { RsbuildPlugin } from '@rsbuild/core'; +import type * as t from '@babel/types'; +import { VirtualRootRoute } from '@tanstack/virtual-file-routes'; +import { z } from 'zod'; + +// @public (undocumented) +export const RSBUILD_ENVIRONMENT_NAMES: { + readonly client: "client"; + readonly server: "ssr"; +}; + +// @public (undocumented) +export interface StartCompilerImportTransform { + // (undocumented) + detect: RegExp; + // Warning: (ae-forgotten-export) The symbol "StartCompilerEnvironment" needs to be exported by the entry point index.d.ts + // + // (undocumented) + environment?: StartCompilerEnvironment | Array | undefined; + // Warning: (ae-forgotten-export) The symbol "StartCompilerImportTransformImport" needs to be exported by the entry point index.d.ts + // + // (undocumented) + imports: Array; + // (undocumented) + name: string; + // (undocumented) + order?: 'pre' | 'post' | undefined; + // (undocumented) + transform: (candidates: Array, context: StartCompilerTransformContext) => void; +} + +// @public (undocumented) +export interface StartCompilerTransformCandidate { + // (undocumented) + path: babel_2.NodePath; +} + +// @public (undocumented) +export interface StartCompilerTransformContext { + // (undocumented) + readonly ast: t.File; + // (undocumented) + readonly code: string; + // (undocumented) + readonly env: StartCompilerEnvironment; + // (undocumented) + readonly envName: string; + // Warning: (ae-forgotten-export) The symbol "CompileStartFrameworkOptions" needs to be exported by the entry point index.d.ts + // + // (undocumented) + readonly framework: CompileStartFrameworkOptions; + // (undocumented) + readonly id: string; + // (undocumented) + readonly mode: 'dev' | 'build'; + // (undocumented) + parseExpression: (code: string) => t.Expression; + // (undocumented) + readonly providerEnvName: string; + // (undocumented) + readonly root: string; + // (undocumented) + readonly types: typeof t; + // (undocumented) + warn?: (message: string) => void; +} + +// @public (undocumented) +export function tanStackStartRsbuild(corePluginOpts: TanStackStartRsbuildPluginCoreOptions, startPluginOpts?: TanStackStartRsbuildInputConfig): RsbuildPlugin; + +// Warning: (ae-forgotten-export) The symbol "tanstackStartRsbuildOptionsSchema" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type TanStackStartRsbuildInputConfig = z.input & { + rsbuild?: { + installDevServerMiddleware?: boolean; + client?: { + output?: z.input; + }; + }; + server?: { + build?: { + inlineCss?: InlineCssInputOptions; + }; + }; +}; + +// Warning: (ae-forgotten-export) The symbol "TanStackStartCoreOptions" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type TanStackStartRsbuildPluginCoreOptions = TanStackStartCoreOptions & { + providerEnvironmentName: string; + ssrIsProvider: boolean; + rsbuild?: RsbuildCoreOptions | undefined; + rsc?: boolean | undefined; +}; + +// Warnings were encountered during analysis: +// +// dist/esm/rsbuild/schema.d.ts:620:13 - (ae-forgotten-export) The symbol "rsbuildClientOutputSchema" needs to be exported by the entry point index.d.ts +// dist/esm/rsbuild/schema.d.ts:625:13 - (ae-forgotten-export) The symbol "InlineCssInputOptions" needs to be exported by the entry point index.d.ts +// dist/esm/rsbuild/types.d.ts:15:5 - (ae-forgotten-export) The symbol "RsbuildCoreOptions" needs to be exported by the entry point index.d.ts + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/start-plugin-core/api/rsbuild/types.api.md b/packages/start-plugin-core/api/rsbuild/types.api.md new file mode 100644 index 0000000000..e2955f0a0b --- /dev/null +++ b/packages/start-plugin-core/api/rsbuild/types.api.md @@ -0,0 +1,47 @@ +## API Report File for "@tanstack/start-plugin-core" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/rsbuild/types.d.ts`. Regenerate with `node scripts/api-report.mjs packages/start-plugin-core` after a build. +> +> Imported as: +> +> - `@tanstack/start-plugin-core/rsbuild/types` (`import`) + +```ts + +import type * as babel_2 from '@babel/core'; +import { EnvironmentConfig } from '@rsbuild/core'; +import type * as t from '@babel/types'; + +// @public (undocumented) +export interface RsbuildCoreOptions { + // (undocumented) + environments?: RsbuildEnvironmentOverrides | undefined; +} + +// @public (undocumented) +export interface RsbuildEnvironmentOverrides { + // (undocumented) + all?: EnvironmentConfig | undefined; + // (undocumented) + client?: EnvironmentConfig | undefined; + // (undocumented) + provider?: EnvironmentConfig | undefined; + // (undocumented) + server?: EnvironmentConfig | undefined; +} + +// Warning: (ae-forgotten-export) The symbol "TanStackStartCoreOptions" needs to be exported by the entry point types.d.ts +// +// @public (undocumented) +export type TanStackStartRsbuildPluginCoreOptions = TanStackStartCoreOptions & { + providerEnvironmentName: string; + ssrIsProvider: boolean; + rsbuild?: RsbuildCoreOptions | undefined; + rsc?: boolean | undefined; +}; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/start-plugin-core/api/utils.api.md b/packages/start-plugin-core/api/utils.api.md new file mode 100644 index 0000000000..4f6303ad8e --- /dev/null +++ b/packages/start-plugin-core/api/utils.api.md @@ -0,0 +1,39 @@ +## API Report File for "@tanstack/start-plugin-core" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/utils.d.ts`. Regenerate with `node scripts/api-report.mjs packages/start-plugin-core` after a build. +> +> Imported as: +> +> - `@tanstack/start-plugin-core/utils` (`import`) + +```ts + +// @public (undocumented) +export function createIdFilter(ids: Array): RegExp; + +// @public (undocumented) +export function createLogger(prefix: string): { + log: (...args: any) => void; + debug: (...args: any) => void; + info: (...args: any) => void; + warn: (...args: any) => void; + error: (...args: any) => void; +}; + +// @public (undocumented) +export function escapeRegExp(value: string): string; + +// @public +export function getBundlerOptions(build: any): any; + +// @public (undocumented) +export function normalizePath(id: string): string; + +// @public (undocumented) +export function resolveViteId(id: string): string; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/start-plugin-core/api/vite/index.api.md b/packages/start-plugin-core/api/vite/index.api.md new file mode 100644 index 0000000000..5debf8abb3 --- /dev/null +++ b/packages/start-plugin-core/api/vite/index.api.md @@ -0,0 +1,144 @@ +## API Report File for "@tanstack/start-plugin-core" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/vite/index.d.ts`. Regenerate with `node scripts/api-report.mjs packages/start-plugin-core` after a build. +> +> Imported as: +> +> - `@tanstack/start-plugin-core/vite` (`import`) + +```ts + +import type * as babel_2 from '@babel/core'; +import { CodeSplittingOptions } from '@tanstack/router-plugin'; +import { GeneratorPlugin } from '@tanstack/router-generator'; +import { Plugin as Plugin_2 } from 'vite'; +import { PluginOption } from 'vite'; +import type * as t from '@babel/types'; +import { VirtualRootRoute } from '@tanstack/virtual-file-routes'; +import { z } from 'zod'; + +// @public (undocumented) +export function createVirtualModule(opts: { + name: string; + moduleId: string; + load: VirtualModuleLoadHandler; + apply?: Plugin_2['apply']; + applyToEnvironment?: Plugin_2['applyToEnvironment']; + enforce?: Plugin_2['enforce']; + sharedDuringBuild?: boolean; +}): Plugin_2; + +// @public (undocumented) +export const START_ENVIRONMENT_NAMES: { + readonly server: "ssr"; + readonly client: "client"; +}; + +// @public (undocumented) +export interface StartCompilerImportTransform { + // (undocumented) + detect: RegExp; + // Warning: (ae-forgotten-export) The symbol "StartCompilerEnvironment" needs to be exported by the entry point index.d.ts + // + // (undocumented) + environment?: StartCompilerEnvironment | Array | undefined; + // Warning: (ae-forgotten-export) The symbol "StartCompilerImportTransformImport" needs to be exported by the entry point index.d.ts + // + // (undocumented) + imports: Array; + // (undocumented) + name: string; + // (undocumented) + order?: 'pre' | 'post' | undefined; + // (undocumented) + transform: (candidates: Array, context: StartCompilerTransformContext) => void; +} + +// @public (undocumented) +export interface StartCompilerTransformCandidate { + // (undocumented) + path: babel_2.NodePath; +} + +// @public (undocumented) +export interface StartCompilerTransformContext { + // (undocumented) + readonly ast: t.File; + // (undocumented) + readonly code: string; + // (undocumented) + readonly env: StartCompilerEnvironment; + // (undocumented) + readonly envName: string; + // Warning: (ae-forgotten-export) The symbol "CompileStartFrameworkOptions" needs to be exported by the entry point index.d.ts + // + // (undocumented) + readonly framework: CompileStartFrameworkOptions; + // (undocumented) + readonly id: string; + // (undocumented) + readonly mode: 'dev' | 'build'; + // (undocumented) + parseExpression: (code: string) => t.Expression; + // (undocumented) + readonly providerEnvName: string; + // (undocumented) + readonly root: string; + // (undocumented) + readonly types: typeof t; + // (undocumented) + warn?: (message: string) => void; +} + +// @public (undocumented) +export function tanStackStartVite(corePluginOpts: TanStackStartVitePluginCoreOptions, startPluginOpts: TanStackStartViteInputConfig | undefined): Array; + +// Warning: (ae-forgotten-export) The symbol "tanstackStartViteOptionsSchema" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type TanStackStartViteInputConfig = z.input & { + server?: { + build?: { + inlineCss?: InlineCssInputOptions; + }; + }; +}; + +// Warning: (ae-forgotten-export) The symbol "TanStackStartCoreOptions" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type TanStackStartVitePluginCoreOptions = TanStackStartCoreOptions & { + providerEnvironmentName: string; + ssrIsProvider: boolean; + ssrResolverStrategy: SsrResolverStrategy; +}; + +// @public (undocumented) +export const VITE_ENVIRONMENT_NAMES: { + readonly server: "ssr"; + readonly client: "client"; +}; + +// @public (undocumented) +export interface ViteRscForwardSsrResolverStrategy { + // (undocumented) + exportName: 'getServerFnById'; + // (undocumented) + sourceEntry: string; + // (undocumented) + sourceEnvironmentName: string; + // (undocumented) + type: 'vite-rsc-forward'; +} + +// Warnings were encountered during analysis: +// +// dist/esm/vite/createVirtualModule.d.ts:6:5 - (ae-forgotten-export) The symbol "VirtualModuleLoadHandler" needs to be exported by the entry point index.d.ts +// dist/esm/vite/schema.d.ts:609:13 - (ae-forgotten-export) The symbol "InlineCssInputOptions" needs to be exported by the entry point index.d.ts +// dist/esm/vite/types.d.ts:14:5 - (ae-forgotten-export) The symbol "SsrResolverStrategy" needs to be exported by the entry point index.d.ts + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/start-server-core/api/constants.api.md b/packages/start-server-core/api/constants.api.md new file mode 100644 index 0000000000..4ff29de707 --- /dev/null +++ b/packages/start-server-core/api/constants.api.md @@ -0,0 +1,20 @@ +## API Report File for "@tanstack/start-server-core" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/constants.d.ts`. Regenerate with `node scripts/api-report.mjs packages/start-server-core` after a build. +> +> Imported as: +> +> - `@tanstack/start-server-core/constants` (`import`) + +```ts + +// @public (undocumented) +export const HEADERS: { + readonly TSS_SHELL: "X-TSS_SHELL"; +}; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/start-server-core/api/createServerRpc.api.md b/packages/start-server-core/api/createServerRpc.api.md new file mode 100644 index 0000000000..accb3f43a8 --- /dev/null +++ b/packages/start-server-core/api/createServerRpc.api.md @@ -0,0 +1,25 @@ +## API Report File for "@tanstack/start-server-core" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/createServerRpc.d.ts`. Regenerate with `node scripts/api-report.mjs packages/start-server-core` after a build. +> +> Imported as: +> +> - `@tanstack/start-server-core/createServerRpc` (`import`) + +```ts + +import { ServerFnMeta } from '@tanstack/start-client-core'; +import { TSS_SERVER_FUNCTION } from '@tanstack/start-client-core'; + +// @public (undocumented) +export const createServerRpc: (serverFnMeta: ServerFnMeta, splitImportFn: (...args: any) => any) => ((...args: any) => any) & { + url: string; + serverFnMeta: ServerFnMeta; + [TSS_SERVER_FUNCTION]: boolean; +}; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/start-server-core/api/createSsrRpc.api.md b/packages/start-server-core/api/createSsrRpc.api.md new file mode 100644 index 0000000000..a76fa191ba --- /dev/null +++ b/packages/start-server-core/api/createSsrRpc.api.md @@ -0,0 +1,25 @@ +## API Report File for "@tanstack/start-server-core" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/createSsrRpc.d.ts`. Regenerate with `node scripts/api-report.mjs packages/start-server-core` after a build. +> +> Imported as: +> +> - `@tanstack/start-server-core/createSsrRpc` (`import`) + +```ts + +import { ClientFnMeta } from '@tanstack/start-client-core'; +import { TSS_SERVER_FUNCTION } from '@tanstack/start-client-core'; + +// @public (undocumented) +export const createSsrRpc: (functionId: string) => ((...args: Array) => Promise) & { + url: string; + serverFnMeta: ClientFnMeta; + [TSS_SERVER_FUNCTION]: boolean; +}; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/start-server-core/api/index.api.md b/packages/start-server-core/api/index.api.md new file mode 100644 index 0000000000..ea989a3d39 --- /dev/null +++ b/packages/start-server-core/api/index.api.md @@ -0,0 +1,281 @@ +## API Report File for "@tanstack/start-server-core" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/index.d.ts`. Regenerate with `node scripts/api-report.mjs packages/start-server-core` after a build. +> +> Imported as: +> +> - `@tanstack/start-server-core` (`import`) + +```ts + +import { AnyRouter } from '@tanstack/router-core'; +import { AssetCrossOrigin } from '@tanstack/router-core'; +import { attachRouterServerSsrUtils } from '@tanstack/router-core/ssr/server'; +import { Awaitable } from '@tanstack/router-core'; +import { CookieSerializeOptions } from 'cookie-es'; +import { createRequestHandler } from '@tanstack/router-core/ssr/server'; +import { defineHandlerCallback } from '@tanstack/router-core/ssr/server'; +import { HandlerCallback } from '@tanstack/router-core/ssr/server'; +import { Register } from '@tanstack/router-core'; +import { RequestHeaderMap } from 'fetchdts'; +import { RequestHeaderName } from 'fetchdts'; +import { ResponseHeaderMap } from 'fetchdts'; +import { ResponseHeaderName } from 'fetchdts'; +import { transformPipeableStreamWithRouter } from '@tanstack/router-core/ssr/server'; +import { transformReadableStreamWithRouter } from '@tanstack/router-core/ssr/server'; +import { TypedHeaders } from 'fetchdts'; + +// @public +export function appendResponseHeader(name: ResponseHeaderName, value: string | Array): void; + +export { attachRouterServerSsrUtils } + +// @public (undocumented) +export function clearResponseHeaders(headerNames?: Array): void; + +export { createRequestHandler } + +// @public +export function createServerEntry(entry: { + fetch: RequestHandler; +}): { + fetch: RequestHandler; +}; + +// @public +export function createStartHandler(cbOrOptions: HandlerCallback | CreateStartHandlerOptions): RequestHandler; + +// Warning: (ae-forgotten-export) The symbol "FinalManifestOptions" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export interface CreateStartHandlerOptions extends FinalManifestOptions { + // (undocumented) + handler: HandlerCallback; +} + +// @public (undocumented) +export type CreateTransformAssetsContext = { + warmup: true; +} | { + request: Request; + warmup: false; +}; + +export { defineHandlerCallback } + +// @public +export function deleteCookie(name: string, options?: CookieSerializeOptions): void; + +// @public (undocumented) +export type EarlyHint = { + href: string; + rel: 'preload' | 'modulepreload' | 'preconnect' | 'dns-prefetch'; + as?: 'fetch' | 'font' | 'image' | 'script' | 'style' | 'track'; + crossOrigin?: AssetCrossOrigin | ''; + type?: string; + integrity?: string; + referrerPolicy?: string; + fetchPriority?: string; +}; + +// @public (undocumented) +export type EarlyHintsEvent = { + phase: EarlyHintsPhase; + hints: ReadonlyArray; + links: Array; + allHints: ReadonlyArray; + allLinks: Array; +}; + +// @public (undocumented) +export type EarlyHintsPhase = 'static' | 'dynamic'; + +// @public +export function getCookie(name: string): string | undefined; + +// @public +export function getCookies(): Record; + +// @public (undocumented) +export function getRequest(): Request; + +// @public (undocumented) +export function getRequestHeader(name: RequestHeaderName): string | undefined; + +// @public (undocumented) +export function getRequestHeaders(): TypedHeaders; + +// @public +export function getRequestHost(opts?: { + xForwardedHost?: boolean; +}): string; + +// @public (undocumented) +export function getRequestIP(opts?: { + xForwardedFor?: boolean; +}): string | undefined; + +// @public +export function getRequestProtocol(opts?: { + xForwardedProto?: boolean; +}): 'http' | 'https' | (string & {}); + +// @public +export function getRequestUrl(opts?: { + xForwardedHost?: boolean; + xForwardedProto?: boolean; +}): URL; + +// @public (undocumented) +export function getResponseHeader(name: ResponseHeaderName): string | undefined; + +// @public +export function getResponseHeaders(): ReadonlyResponseHeaders; + +// @public (undocumented) +export function getResponseStatus(): number; + +export { HandlerCallback } + +// @public (undocumented) +export function handleStartError(error: unknown): Response; + +// @public (undocumented) +export const HEADERS: { + readonly TSS_SHELL: "X-TSS_SHELL"; +}; + +// @public (undocumented) +export type OnEarlyHints = (event: EarlyHintsEvent) => void | Promise; + +// @public +export type ReadonlyResponseHeaders = Omit, 'append' | 'delete' | 'set' | 'forEach'> & { + forEach: (callback: (value: string, name: ResponseHeaderName, headers: ReadonlyResponseHeaders) => void, thisArg?: unknown) => void; +}; + +// @public (undocumented) +export function removeResponseHeader(name: ResponseHeaderName): void; + +// Warning: (ae-forgotten-export) The symbol "HasRequired" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type RequestHandler = HasRequired> extends true ? (request: Request, opts: RequestOptions) => Promise | Response : (request: Request, opts?: RequestOptions) => Promise | Response; + +export { RequestHeaderName } + +// Warning: (ae-forgotten-export) The symbol "EarlyHintsOptions" needs to be exported by the entry point index.d.ts +// Warning: (ae-forgotten-export) The symbol "InlineCssOptions" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type RequestOptions = EarlyHintsOptions & InlineCssOptions & (TRegister extends { + server: { + requestContext: infer TRequestContext; + }; +} ? TRequestContext extends undefined ? { + context?: TRequestContext & BaseContext; +} : { + context: TRequestContext & BaseContext; +} : { + context?: BaseContext; +}); + +export { ResponseHeaderName } + +// @public (undocumented) +export type ResponseLinkHeaderEntry = { + phase: EarlyHintsPhase; + hint: EarlyHint; + link: string; +}; + +// @public (undocumented) +export type ResponseLinkHeaderFilter = (entry: ResponseLinkHeaderEntry) => boolean; + +// @public (undocumented) +export type ResponseLinkHeaderOptions = { + filter?: ResponseLinkHeaderFilter; +}; + +// @public +export function setCookie(name: string, value: string, options?: CookieSerializeOptions): void; + +// @public (undocumented) +export function setResponseHeader(name: ResponseHeaderName, value: string | Array): void; + +// @public (undocumented) +export function setResponseHeaders(headers: TypedHeaders | ReadonlyResponseHeaders): void; + +// @public (undocumented) +export function setResponseStatus(code?: number, text?: string): void; + +// @public (undocumented) +export type TransformAssetKind = TransformAssetsContext['kind']; + +// @public (undocumented) +export type TransformAssetResult = string | { + href: string; + crossOrigin?: AssetCrossOrigin; +}; + +// @public (undocumented) +export type TransformAssets = string | TransformAssetsFn | TransformAssetsObjectShorthand | TransformAssetsOptions; + +// @public (undocumented) +export type TransformAssetsContext = { + url: string; + kind: 'script'; +} | { + url: string; + kind: 'stylesheet'; +} | { + url: string; + kind: 'css-url'; + stylesheetHref: string; +}; + +// Warning: (ae-forgotten-export) The symbol "TransformAssetsShorthandCrossOriginKind" needs to be exported by the entry point index.d.ts +// +// @public +export type TransformAssetsCrossOriginConfig = AssetCrossOrigin | Partial>; + +// @public (undocumented) +export type TransformAssetsFn = (context: TransformAssetsContext) => Awaitable; + +// @public +export interface TransformAssetsObjectShorthand { + crossOrigin?: TransformAssetsCrossOriginConfig; + prefix: string; +} + +// Warning: (ae-forgotten-export) The symbol "TransformAssetsOptionsBase" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type TransformAssetsOptions = (TransformAssetsOptionsBase & { + transform: string | TransformAssetsFn; + createTransform?: never; +}) | (TransformAssetsOptionsBase & { + createTransform: CreateTransformAssetsFn; + transform?: never; +}); + +export { transformPipeableStreamWithRouter } + +export { transformReadableStreamWithRouter } + +// @public (undocumented) +export const VIRTUAL_MODULES: { + readonly startManifest: "tanstack-start-manifest:v"; + readonly serverFnResolver: "#tanstack-start-server-fn-resolver"; + readonly pluginAdapters: "#tanstack-start-plugin-adapters"; +}; + +// Warnings were encountered during analysis: +// +// dist/esm/request-handler.d.ts:61:5 - (ae-forgotten-export) The symbol "BaseContext" needs to be exported by the entry point index.d.ts +// dist/esm/transformAssetUrls.d.ts:63:5 - (ae-forgotten-export) The symbol "CreateTransformAssetsFn" needs to be exported by the entry point index.d.ts + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/start-server-core/api/request-response.api.md b/packages/start-server-core/api/request-response.api.md new file mode 100644 index 0000000000..84348e0039 --- /dev/null +++ b/packages/start-server-core/api/request-response.api.md @@ -0,0 +1,115 @@ +## API Report File for "@tanstack/start-server-core" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/request-response.d.ts`. Regenerate with `node scripts/api-report.mjs packages/start-server-core` after a build. +> +> Imported as: +> +> - `@tanstack/start-server-core/request-response` (`import`) + +```ts + +import { AssetCrossOrigin } from '@tanstack/router-core'; +import { CookieSerializeOptions } from 'cookie-es'; +import { RequestHeaderMap } from 'fetchdts'; +import { RequestHeaderName } from 'fetchdts'; +import { ResponseHeaderMap } from 'fetchdts'; +import { ResponseHeaderName } from 'fetchdts'; +import { TypedHeaders } from 'fetchdts'; + +// @public +export function appendResponseHeader(name: ResponseHeaderName, value: string | Array): void; + +// @public (undocumented) +export function clearResponseHeaders(headerNames?: Array): void; + +// @public +export function createServerEntry(entry: { + fetch: RequestHandler; +}): { + fetch: RequestHandler; +}; + +// @public +export function deleteCookie(name: string, options?: CookieSerializeOptions): void; + +// @public +export function getCookie(name: string): string | undefined; + +// @public +export function getCookies(): Record; + +// @public (undocumented) +export function getRequest(): Request; + +// @public (undocumented) +export function getRequestHeader(name: RequestHeaderName): string | undefined; + +// @public (undocumented) +export function getRequestHeaders(): TypedHeaders; + +// @public +export function getRequestHost(opts?: { + xForwardedHost?: boolean; +}): string; + +// @public (undocumented) +export function getRequestIP(opts?: { + xForwardedFor?: boolean; +}): string | undefined; + +// @public +export function getRequestProtocol(opts?: { + xForwardedProto?: boolean; +}): 'http' | 'https' | (string & {}); + +// @public +export function getRequestUrl(opts?: { + xForwardedHost?: boolean; + xForwardedProto?: boolean; +}): URL; + +// @public (undocumented) +export function getResponseHeader(name: ResponseHeaderName): string | undefined; + +// @public +export function getResponseHeaders(): ReadonlyResponseHeaders; + +// @public (undocumented) +export function getResponseStatus(): number; + +// @public (undocumented) +export function handleStartError(error: unknown): Response; + +// @public +export type ReadonlyResponseHeaders = Omit, 'append' | 'delete' | 'set' | 'forEach'> & { + forEach: (callback: (value: string, name: ResponseHeaderName, headers: ReadonlyResponseHeaders) => void, thisArg?: unknown) => void; +}; + +// @public (undocumented) +export function removeResponseHeader(name: ResponseHeaderName): void; + +export { RequestHeaderName } + +export { ResponseHeaderName } + +// @public +export function setCookie(name: string, value: string, options?: CookieSerializeOptions): void; + +// @public (undocumented) +export function setResponseHeader(name: ResponseHeaderName, value: string | Array): void; + +// @public (undocumented) +export function setResponseHeaders(headers: TypedHeaders | ReadonlyResponseHeaders): void; + +// @public (undocumented) +export function setResponseStatus(code?: number, text?: string): void; + +// Warnings were encountered during analysis: +// +// dist/esm/internal-request-response.d.ts:96:5 - (ae-forgotten-export) The symbol "RequestHandler" needs to be exported by the entry point request-response.d.ts + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/start-server-core/api/virtual-modules.api.md b/packages/start-server-core/api/virtual-modules.api.md new file mode 100644 index 0000000000..6689f38e62 --- /dev/null +++ b/packages/start-server-core/api/virtual-modules.api.md @@ -0,0 +1,22 @@ +## API Report File for "@tanstack/start-server-core" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/virtual-modules.d.ts`. Regenerate with `node scripts/api-report.mjs packages/start-server-core` after a build. +> +> Imported as: +> +> - `@tanstack/start-server-core/virtual-modules` (`import`) + +```ts + +// @public (undocumented) +export const VIRTUAL_MODULES: { + readonly startManifest: "tanstack-start-manifest:v"; + readonly serverFnResolver: "#tanstack-start-server-fn-resolver"; + readonly pluginAdapters: "#tanstack-start-plugin-adapters"; +}; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/start-static-server-functions/api/index.api.md b/packages/start-static-server-functions/api/index.api.md new file mode 100644 index 0000000000..d443348362 --- /dev/null +++ b/packages/start-static-server-functions/api/index.api.md @@ -0,0 +1,20 @@ +## API Report File for "@tanstack/start-static-server-functions" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/index.d.ts`. Regenerate with `node scripts/api-report.mjs packages/start-static-server-functions` after a build. +> +> Imported as: +> +> - `@tanstack/start-static-server-functions` (`import`) + +```ts + +import { FunctionMiddlewareAfterServer } from '@tanstack/start-client-core'; + +// @public (undocumented) +export const staticFunctionMiddleware: FunctionMiddlewareAfterServer< {}, unknown, undefined, undefined, undefined, undefined, undefined>; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/start-storage-context/api/index.api.md b/packages/start-storage-context/api/index.api.md new file mode 100644 index 0000000000..f6acf920a3 --- /dev/null +++ b/packages/start-storage-context/api/index.api.md @@ -0,0 +1,47 @@ +## API Report File for "@tanstack/start-storage-context" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/index.d.ts`. Regenerate with `node scripts/api-report.mjs packages/start-storage-context` after a build. +> +> Imported as: +> +> - `@tanstack/start-storage-context` (`import`) + +```ts + +import { Awaitable } from '@tanstack/router-core'; +import { ManifestRouteAssets } from '@tanstack/router-core'; +import { RegisteredRouter } from '@tanstack/router-core'; + +// @public (undocumented) +export function getStartContext(opts?: { + throwIfNotFound?: TThrow; +}): TThrow extends false ? StartStorageContext | undefined : StartStorageContext; + +// @public (undocumented) +export function runWithStartContext(context: StartStorageContext, fn: () => T): T; + +// @public (undocumented) +export type StartHandlerType = 'router' | 'serverFn'; + +// @public (undocumented) +export interface StartStorageContext { + // (undocumented) + contextAfterGlobalMiddlewares: any; + // (undocumented) + executedRequestMiddlewares?: Set; + // (undocumented) + getRouter: () => Awaitable; + // (undocumented) + handlerType: StartHandlerType; + // (undocumented) + request: Request; + requestAssets?: ManifestRouteAssets; + // (undocumented) + startOptions: any; +} + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/vue-router/api/index.api.md b/packages/vue-router/api/index.api.md new file mode 100644 index 0000000000..4948a4293b --- /dev/null +++ b/packages/vue-router/api/index.api.md @@ -0,0 +1,1282 @@ +## API Report File for "@tanstack/vue-router" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/index.d.ts`. Regenerate with `node scripts/api-report.mjs packages/vue-router` after a build. +> +> Imported as: +> +> - `@tanstack/vue-router` (`import`) + +```ts + +import { AbsoluteToPath } from '@tanstack/router-core'; +import { ActiveOptions } from '@tanstack/router-core'; +import { AnchorHTMLAttributes } from '@vue/runtime-dom'; +import { AnyContext } from '@tanstack/router-core'; +import { AnyPathParams } from '@tanstack/router-core'; +import { AnyRedirect } from '@tanstack/router-core'; +import { AnyRoute } from '@tanstack/router-core'; +import { AnyRouteMatch } from '@tanstack/router-core'; +import { AnyRouter } from '@tanstack/router-core'; +import { AnyRouterWithContext } from '@tanstack/router-core'; +import { AnyRouteWithContext } from '@tanstack/router-core'; +import { AnySchema } from '@tanstack/router-core'; +import { AnySerializationAdapter } from '@tanstack/router-core'; +import { AnyValidator } from '@tanstack/router-core'; +import { AnyValidatorAdapter } from '@tanstack/router-core'; +import { AnyValidatorFn } from '@tanstack/router-core'; +import { AnyValidatorObj } from '@tanstack/router-core'; +import { AssetCrossOriginConfig } from '@tanstack/router-core'; +import { Assign } from '@tanstack/router-core'; +import { BaseRootRoute } from '@tanstack/router-core'; +import { BaseRoute } from '@tanstack/router-core'; +import { BaseRouteApi } from '@tanstack/router-core'; +import { BaseRouteOptions } from '@tanstack/router-core'; +import { BeforeLoadContextOptions } from '@tanstack/router-core'; +import { BeforeLoadContextParameter } from '@tanstack/router-core'; +import { BlockerFn } from '@tanstack/history'; +import { BuildLocationFn } from '@tanstack/router-core'; +import { BuildNextOptions } from '@tanstack/router-core'; +import { cleanPath } from '@tanstack/router-core'; +import { CommitLocationOptions } from '@tanstack/router-core'; +import { composeRewrites } from '@tanstack/router-core'; +import { Constrain } from '@tanstack/router-core'; +import { ConstrainLiteral } from '@tanstack/router-core'; +import { ContextAsyncReturnType } from '@tanstack/router-core'; +import { ContextOptions } from '@tanstack/router-core'; +import { ContextReturnType } from '@tanstack/router-core'; +import { ControllablePromise } from '@tanstack/router-core'; +import { ControlledPromise } from '@tanstack/router-core'; +import { createBrowserHistory } from '@tanstack/history'; +import { createControlledPromise } from '@tanstack/router-core'; +import { CreateFileRoute } from '@tanstack/router-core'; +import { createHashHistory } from '@tanstack/history'; +import { createHistory } from '@tanstack/history'; +import { CreateLazyFileRoute } from '@tanstack/router-core'; +import { createMemoryHistory } from '@tanstack/history'; +import { createRouterConfig } from '@tanstack/router-core'; +import { CreateRouterFn } from '@tanstack/router-core'; +import { createSerializationAdapter } from '@tanstack/router-core'; +import { deepEqual } from '@tanstack/router-core'; +import { DeepPartial } from '@tanstack/router-core'; +import { DEFAULT_PROTOCOL_ALLOWLIST } from '@tanstack/router-core'; +import { defaultParseSearch } from '@tanstack/router-core'; +import { defaultStringifySearch } from '@tanstack/router-core'; +import { DefaultValidator } from '@tanstack/router-core'; +import { defer } from '@tanstack/router-core'; +import { DeferredPromise } from '@tanstack/router-core'; +import { DeferredPromiseState } from '@tanstack/router-core'; +import { ErrorComponentProps } from '@tanstack/router-core'; +import { ErrorRouteProps } from '@tanstack/router-core'; +import { Expand } from '@tanstack/router-core'; +import { FileBaseRouteOptions } from '@tanstack/router-core'; +import { FileRoutesByPath } from '@tanstack/router-core'; +import { FileRouteTypes } from '@tanstack/router-core'; +import { FromPathOption } from '@tanstack/router-core'; +import { FullSearchSchemaOption } from '@tanstack/router-core'; +import { functionalUpdate } from '@tanstack/router-core'; +import { HistoryAction } from '@tanstack/history'; +import { HistoryLocation } from '@tanstack/history'; +import { HistoryState } from '@tanstack/history'; +import { InferAllContext } from '@tanstack/router-core'; +import { InferAllParams } from '@tanstack/router-core'; +import { InferDescendantToPaths } from '@tanstack/router-core'; +import { InferFrom } from '@tanstack/router-core'; +import { InferFullSearchSchema } from '@tanstack/router-core'; +import { InferFullSearchSchemaInput } from '@tanstack/router-core'; +import { InferMaskFrom } from '@tanstack/router-core'; +import { InferMaskTo } from '@tanstack/router-core'; +import { InferSelected } from '@tanstack/router-core'; +import { InferShouldThrow } from '@tanstack/router-core'; +import { InferStrict } from '@tanstack/router-core'; +import { InferTo } from '@tanstack/router-core'; +import { interpolatePath } from '@tanstack/router-core'; +import { IntersectAssign } from '@tanstack/router-core'; +import { isMatch } from '@tanstack/router-core'; +import { isNotFound } from '@tanstack/router-core'; +import { isRedirect } from '@tanstack/router-core'; +import { joinPaths } from '@tanstack/router-core'; +import { JSX } from 'vue/jsx-runtime'; +import { lazyFn } from '@tanstack/router-core'; +import { LazyRouteOptions } from '@tanstack/router-core'; +import { LinkOptions } from '@tanstack/router-core'; +import { ListenerFn } from '@tanstack/router-core'; +import { LoaderFnContext } from '@tanstack/router-core'; +import { LocationRewrite } from '@tanstack/router-core'; +import { LocationRewriteFunction } from '@tanstack/router-core'; +import { LooseAsyncReturnType } from '@tanstack/router-core'; +import { LooseReturnType } from '@tanstack/router-core'; +import { MakeOptionalPathParams } from '@tanstack/router-core'; +import { MakeOptionalSearchParams } from '@tanstack/router-core'; +import { MakeRemountDepsOptionsUnion } from '@tanstack/router-core'; +import { MakeRouteMatch } from '@tanstack/router-core'; +import { MakeRouteMatchUnion } from '@tanstack/router-core'; +import { Manifest } from '@tanstack/router-core'; +import { MaskOptions } from '@tanstack/router-core'; +import { MatchLocation } from '@tanstack/router-core'; +import { MatchRouteOptions } from '@tanstack/router-core'; +import { MergeAll } from '@tanstack/router-core'; +import { MetaDescriptor } from '@tanstack/router-core'; +import { NavigateFn } from '@tanstack/router-core'; +import { NavigateOptions } from '@tanstack/router-core'; +import { notFound } from '@tanstack/router-core'; +import { NotFoundError } from '@tanstack/router-core'; +import { NotFoundRouteProps } from '@tanstack/router-core'; +import { ParamsOptions } from '@tanstack/router-core'; +import { ParsedLocation } from '@tanstack/router-core'; +import { ParsedPath } from '@tanstack/history'; +import { ParseParamsFn } from '@tanstack/router-core'; +import { ParseRoute } from '@tanstack/router-core'; +import { parseSearchWith } from '@tanstack/router-core'; +import { PathParamOptions } from '@tanstack/router-core'; +import { PreloadableObj } from '@tanstack/router-core'; +import { Redirect } from '@tanstack/router-core'; +import { redirect } from '@tanstack/router-core'; +import { RedirectOptions } from '@tanstack/router-core'; +import { Ref } from 'vue'; +import { Register } from '@tanstack/router-core'; +import { RegisteredRouter } from '@tanstack/router-core'; +import { RelativeToCurrentPath } from '@tanstack/router-core'; +import { RelativeToParentPath } from '@tanstack/router-core'; +import { RelativeToPath } from '@tanstack/router-core'; +import { RelativeToPathAutoComplete } from '@tanstack/router-core'; +import { RemountDepsOptions } from '@tanstack/router-core'; +import { RemoveLeadingSlashes } from '@tanstack/router-core'; +import { RemoveTrailingSlashes } from '@tanstack/router-core'; +import { replaceEqualDeep } from '@tanstack/router-core'; +import { ReservedProps } from '@vue/runtime-dom'; +import { ResolveAllContext } from '@tanstack/router-core'; +import { ResolveAllParamsFromParent } from '@tanstack/router-core'; +import { ResolvedRedirect } from '@tanstack/router-core'; +import { ResolveFullPath } from '@tanstack/router-core'; +import { ResolveFullSearchSchema } from '@tanstack/router-core'; +import { ResolveFullSearchSchemaInput } from '@tanstack/router-core'; +import { ResolveId } from '@tanstack/router-core'; +import { ResolveLoaderData } from '@tanstack/router-core'; +import { ResolveOptionalParams } from '@tanstack/router-core'; +import { ResolveParams } from '@tanstack/router-core'; +import { resolvePath } from '@tanstack/router-core'; +import { ResolveRelativePath } from '@tanstack/router-core'; +import { ResolveRequiredParams } from '@tanstack/router-core'; +import { ResolveRoute } from '@tanstack/router-core'; +import { ResolveRouteContext } from '@tanstack/router-core'; +import { ResolveSearchValidatorInput } from '@tanstack/router-core'; +import { ResolveSearchValidatorInputFn } from '@tanstack/router-core'; +import { ResolveUseLoaderData } from '@tanstack/router-core'; +import { ResolveUseLoaderDeps } from '@tanstack/router-core'; +import { ResolveUseParams } from '@tanstack/router-core'; +import { ResolveUseSearch } from '@tanstack/router-core'; +import { ResolveValidatorInput } from '@tanstack/router-core'; +import { ResolveValidatorInputFn } from '@tanstack/router-core'; +import { ResolveValidatorOutput } from '@tanstack/router-core'; +import { ResolveValidatorOutputFn } from '@tanstack/router-core'; +import { retainSearchParams } from '@tanstack/router-core'; +import { RootRoute as RootRoute_2 } from '@tanstack/router-core'; +import { RootRouteId } from '@tanstack/router-core'; +import { rootRouteId } from '@tanstack/router-core'; +import { RootRouteOptions } from '@tanstack/router-core'; +import { Route as Route_2 } from '@tanstack/router-core'; +import { RouteById } from '@tanstack/router-core'; +import { RouteConstraints } from '@tanstack/router-core'; +import { RouteContext } from '@tanstack/router-core'; +import { RouteContextFn } from '@tanstack/router-core'; +import { RouteContextOptions } from '@tanstack/router-core'; +import { RouteContextParameter } from '@tanstack/router-core'; +import { RouteIds } from '@tanstack/router-core'; +import { RouteLinkEntry } from '@tanstack/router-core'; +import { RouteLoaderEntry } from '@tanstack/router-core'; +import { RouteLoaderFn } from '@tanstack/router-core'; +import { RouteMask } from '@tanstack/router-core'; +import { RouteMatch } from '@tanstack/router-core'; +import { RouteOptions } from '@tanstack/router-core'; +import { RoutePathOptions } from '@tanstack/router-core'; +import { RoutePathOptionsIntersection } from '@tanstack/router-core'; +import { RoutePaths } from '@tanstack/router-core'; +import { RouterConstructorOptions } from '@tanstack/router-core'; +import { RouterContextOptions } from '@tanstack/router-core'; +import { RouterCore } from '@tanstack/router-core'; +import { RouterEvent } from '@tanstack/router-core'; +import { RouterEvents } from '@tanstack/router-core'; +import { RouterHistory } from '@tanstack/history'; +import { RouterListener } from '@tanstack/router-core'; +import { RouterManagedTag } from '@tanstack/router-core'; +import { RouterOptions } from '@tanstack/router-core'; +import { RouterState } from '@tanstack/router-core'; +import { RouteTypesById } from '@tanstack/router-core'; +import { ScrollRestorationEntry } from '@tanstack/router-core'; +import { ScrollRestorationOptions } from '@tanstack/router-core'; +import { SearchFilter } from '@tanstack/router-core'; +import { SearchParamError } from '@tanstack/router-core'; +import { SearchParamOptions } from '@tanstack/router-core'; +import { SearchParser } from '@tanstack/router-core'; +import { SearchSchemaInput } from '@tanstack/router-core'; +import { SearchSerializer } from '@tanstack/router-core'; +import { SerializableExtensions } from '@tanstack/router-core'; +import { SerializationAdapter } from '@tanstack/router-core'; +import { StaticDataRouteOption } from '@tanstack/router-core'; +import { StrictOrFrom } from '@tanstack/router-core'; +import { StringifyParamsFn } from '@tanstack/router-core'; +import { stringifySearchWith } from '@tanstack/router-core'; +import { stripSearchParams } from '@tanstack/router-core'; +import { ThrowConstraint } from '@tanstack/router-core'; +import { ThrowOrOptional } from '@tanstack/router-core'; +import { ToMaskOptions } from '@tanstack/router-core'; +import { ToOptions } from '@tanstack/router-core'; +import { ToPathOption } from '@tanstack/router-core'; +import { ToSubOptions } from '@tanstack/router-core'; +import { ToSubOptionsProps } from '@tanstack/router-core'; +import { TrailingSlashOption } from '@tanstack/router-core'; +import { TrimPath } from '@tanstack/router-core'; +import { trimPath } from '@tanstack/router-core'; +import { TrimPathLeft } from '@tanstack/router-core'; +import { trimPathLeft } from '@tanstack/router-core'; +import { TrimPathRight } from '@tanstack/router-core'; +import { trimPathRight } from '@tanstack/router-core'; +import { UpdatableRouteOptions } from '@tanstack/router-core'; +import { UpdatableStaticRouteOption } from '@tanstack/router-core'; +import { UseLoaderDataResult } from '@tanstack/router-core'; +import { UseLoaderDepsResult } from '@tanstack/router-core'; +import { UseNavigateResult } from '@tanstack/router-core'; +import { UseParamsResult } from '@tanstack/router-core'; +import { UseRouteContextBaseOptions } from '@tanstack/router-core'; +import { UseRouteContextOptions } from '@tanstack/router-core'; +import { UseRouteContextResult } from '@tanstack/router-core'; +import { UseSearchResult } from '@tanstack/router-core'; +import { ValidateFromPath } from '@tanstack/router-core'; +import { ValidateId } from '@tanstack/router-core'; +import { ValidateNavigateOptions } from '@tanstack/router-core'; +import { ValidateNavigateOptionsArray } from '@tanstack/router-core'; +import { ValidateParams } from '@tanstack/router-core'; +import { ValidateRedirectOptions } from '@tanstack/router-core'; +import { ValidateRedirectOptionsArray } from '@tanstack/router-core'; +import { ValidateSearch } from '@tanstack/router-core'; +import { ValidateToPath } from '@tanstack/router-core'; +import { ValidateUseParamsResult } from '@tanstack/router-core'; +import { ValidateUseSearchResult } from '@tanstack/router-core'; +import { Validator } from '@tanstack/router-core'; +import { ValidatorAdapter } from '@tanstack/router-core'; +import { ValidatorFn } from '@tanstack/router-core'; +import { ValidatorObj } from '@tanstack/router-core'; +import { VNode } from 'vue'; +import * as Vue from 'vue'; + +export { AbsoluteToPath } + +// Warning: (ae-forgotten-export) The symbol "ActiveLinkOptionProps" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type ActiveLinkOptions = LinkOptions & ActiveLinkOptionProps; + +export { ActiveOptions } + +export { AnyContext } + +export { AnyPathParams } + +export { AnyRedirect } + +// @public (undocumented) +export type AnyRootRoute = RootRoute; + +export { AnyRoute } + +export { AnyRouteMatch } + +export { AnyRouter } + +export { AnyRouterWithContext } + +export { AnyRouteWithContext } + +export { AnySchema } + +export { AnySerializationAdapter } + +export { AnyValidator } + +export { AnyValidatorAdapter } + +export { AnyValidatorFn } + +export { AnyValidatorObj } + +// @public (undocumented) +export function Asset(asset: RouterManagedTag): any; + +export { Assign } + +// @public (undocumented) +export type AsyncRouteComponent = SyncRouteComponent & { + preload?: () => Promise | undefined; +}; + +// @public (undocumented) +export const Await: Vue.DefineComponent, () => Vue.VNode, {}, {}, {}, Vue.ComponentOptionsMixin, Vue.ComponentOptionsMixin, {}, string, Vue.PublicProps, Readonly> & Readonly<{}>, {}, {}, {}, {}, string, Vue.ComponentProvideOptions, true, {}, any>; + +// @public (undocumented) +export type AwaitOptions = { + promise: Promise; +}; + +export { BaseRouteOptions } + +export { BeforeLoadContextOptions } + +export { BeforeLoadContextParameter } + +// Warning: (ae-forgotten-export) The symbol "PromptProps" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export function Block(opts: PromptProps): Vue.VNode; + +// Warning: (ae-forgotten-export) The symbol "LegacyPromptProps" needs to be exported by the entry point index.d.ts +// +// @public @deprecated (undocumented) +export function Block(opts: LegacyPromptProps): Vue.VNode; + +export { BlockerFn } + +// @public (undocumented) +const Body_2: Vue.DefineComponent<{}, () => Vue.VNode, {}, {}, {}, Vue.ComponentOptionsMixin, Vue.ComponentOptionsMixin, {}, string, Vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, Vue.ComponentProvideOptions, true, {}, any>; +export { Body_2 as Body } + +export { BuildLocationFn } + +export { BuildNextOptions } + +// Warning: (ae-forgotten-export) The symbol "CatchBoundaryProps" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export function CatchBoundary(props: CatchBoundaryProps): Vue.VNode; + +// @public (undocumented) +export namespace CatchBoundary { + var // (undocumented) + inheritAttrs: boolean; + var // (undocumented) + props: string[]; +} + +// @public (undocumented) +export const CatchNotFound: Vue.DefineComponent Vue.VNode>; + onCatch: Vue.PropType<(error: NotFoundError) => void>; + children: { + type: Vue.PropType; + required: true; + }; +}>, () => Vue.VNode, {}, {}, {}, Vue.ComponentOptionsMixin, Vue.ComponentOptionsMixin, {}, string, Vue.PublicProps, Readonly Vue.VNode>; + onCatch: Vue.PropType<(error: NotFoundError) => void>; + children: { + type: Vue.PropType; + required: true; + }; +}>> & Readonly<{}>, {}, {}, {}, {}, string, Vue.ComponentProvideOptions, true, {}, any>; + +export { cleanPath } + +// @public +export const ClientOnly: Vue.DefineComponent; + default: null; + }; +}>, () => Vue.VNode | Vue.VNode[] | undefined, {}, {}, {}, Vue.ComponentOptionsMixin, Vue.ComponentOptionsMixin, {}, string, Vue.PublicProps, Readonly; + default: null; + }; +}>> & Readonly<{}>, { + fallback: Vue.VNode; +}, {}, {}, {}, string, Vue.ComponentProvideOptions, true, {}, any>; + +export { CommitLocationOptions } + +export { composeRewrites } + +export { Constrain } + +export { ContextAsyncReturnType } + +export { ContextOptions } + +export { ContextReturnType } + +export { ControllablePromise } + +export { ControlledPromise } + +export { createBrowserHistory } + +export { createControlledPromise } + +export { CreateFileRoute } + +// @public (undocumented) +export function createFileRoute(path?: TFilePath): FileRoute['createRoute']; + +export { createHashHistory } + +export { createHistory } + +export { CreateLazyFileRoute } + +// @public (undocumented) +export function createLazyFileRoute(id: TFilePath): (opts: LazyRouteOptions) => LazyRoute; + +// @public (undocumented) +export function createLazyRoute>(id: ConstrainLiteral>): (opts: LazyRouteOptions) => LazyRoute; + +// @public (undocumented) +export function createLink(Comp: Constrain Vue.VNode>): LinkComponent; + +// @public (undocumented) +export type CreateLinkProps = LinkProps; + +export { createMemoryHistory } + +// @public (undocumented) +export function createRootRoute = {}, TLoaderFn = undefined, TSSR = unknown, THandlers = undefined>(options?: RootRouteOptions): RootRoute; + +// @public (undocumented) +export function createRootRouteWithContext(): = {}, TLoaderFn = undefined, TSSR = unknown, THandlers = undefined>(options?: RootRouteOptions) => RootRoute; + +// @public (undocumented) +export function createRoute, TCustomId extends RouteConstraints['TCustomId'] = string, TId extends RouteConstraints['TId'] = ResolveId, TSearchValidator = undefined, TParams = ResolveParams, TRouteContextFn = AnyContext, TBeforeLoadFn = AnyContext, TLoaderDeps extends Record = {}, TLoaderFn = undefined, TChildren = unknown, TSSR = unknown, THandlers = undefined>(options: RouteOptions): Route; + +// @public (undocumented) +export function createRouteMask(opts: { + routeTree: TRouteTree; +} & ToMaskOptions, TFrom, TTo>): RouteMask; + +// @public (undocumented) +export const createRouter: CreateRouterFn; + +export { createRouterConfig } + +export { createSerializationAdapter } + +export { deepEqual } + +export { DEFAULT_PROTOCOL_ALLOWLIST } + +// @public (undocumented) +export const DefaultGlobalNotFound: Vue.DefineComponent<{}, () => Vue.VNode, {}, {}, {}, Vue.ComponentOptionsMixin, Vue.ComponentOptionsMixin, {}, string, Vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, Vue.ComponentProvideOptions, true, {}, any>; + +export { defaultParseSearch } + +export { defaultStringifySearch } + +export { DefaultValidator } + +export { defer } + +export { DeferredPromise } + +export { DeferredPromiseState } + +// @public (undocumented) +export const ErrorComponent: Vue.DefineComponent; + reset: FunctionConstructor; +}>, () => Vue.VNode, {}, {}, {}, Vue.ComponentOptionsMixin, Vue.ComponentOptionsMixin, {}, string, Vue.PublicProps, Readonly; + reset: FunctionConstructor; +}>> & Readonly<{}>, {}, {}, {}, {}, string, Vue.ComponentProvideOptions, true, {}, any>; + +export { ErrorComponentProps } + +// @public (undocumented) +export type ErrorRouteComponent = RouteComponent; + +export { ErrorRouteProps } + +export { Expand } + +export { FileBaseRouteOptions } + +// @public @deprecated (undocumented) +export class FileRoute { + constructor(path?: TFilePath | undefined, _opts?: { + silent: boolean; + }); + // (undocumented) + createRoute: , TRouteContextFn = AnyContext, TBeforeLoadFn = AnyContext, TLoaderDeps extends Record = {}, TLoaderFn = undefined, TChildren = unknown, TSSR = unknown, TMiddlewares = unknown, THandlers = undefined>(options?: FileBaseRouteOptions & UpdatableRouteOptions) => Route_2; + // (undocumented) + path?: TFilePath | undefined; + // (undocumented) + silent?: boolean; +} + +// @public @deprecated (undocumented) +export function FileRouteLoader(_path: TFilePath): (loaderFn: Constrain>) => TLoaderFn; + +export { FileRoutesByPath } + +export { FileRouteTypes } + +export { FullSearchSchemaOption } + +export { functionalUpdate } + +// @public (undocumented) +export function getRouteApi(id: ConstrainLiteral>): RouteApi; + +// @public +export const HeadContent: Vue.DefineComponent; + default: undefined; + }; +}>, () => (Vue.VNode | null)[], {}, {}, {}, Vue.ComponentOptionsMixin, Vue.ComponentOptionsMixin, {}, string, Vue.PublicProps, Readonly; + default: undefined; + }; +}>> & Readonly<{}>, { + assetCrossOrigin: AssetCrossOriginConfig; +}, {}, {}, {}, string, Vue.ComponentProvideOptions, true, {}, any>; + +export { HistoryLocation } + +export { HistoryState } + +// @public (undocumented) +export const Html: Vue.DefineComponent<{}, () => Vue.VNode | undefined, {}, {}, {}, Vue.ComponentOptionsMixin, Vue.ComponentOptionsMixin, {}, string, Vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, Vue.ComponentProvideOptions, true, {}, any>; + +export { InferAllContext } + +export { InferAllParams } + +export { InferDescendantToPaths } + +export { InferFrom } + +export { InferFullSearchSchema } + +export { InferFullSearchSchemaInput } + +export { InferMaskFrom } + +export { InferMaskTo } + +export { InferSelected } + +export { InferShouldThrow } + +export { InferStrict } + +export { InferTo } + +export { interpolatePath } + +export { IntersectAssign } + +export { isMatch } + +export { isNotFound } + +export { isRedirect } + +export { joinPaths } + +export { lazyFn } + +// @public (undocumented) +export class LazyRoute { + constructor(opts: { + id: string; + } & LazyRouteOptions); + // (undocumented) + options: { + id: string; + } & LazyRouteOptions; + // Warning: (ae-forgotten-export) The symbol "UseLoaderDataRoute" needs to be exported by the entry point index.d.ts + // + // (undocumented) + useLoaderData: UseLoaderDataRoute; + // Warning: (ae-forgotten-export) The symbol "UseLoaderDepsRoute" needs to be exported by the entry point index.d.ts + // + // (undocumented) + useLoaderDeps: UseLoaderDepsRoute; + // Warning: (ae-forgotten-export) The symbol "UseMatchRoute" needs to be exported by the entry point index.d.ts + // + // (undocumented) + useMatch: UseMatchRoute; + // (undocumented) + useNavigate: () => UseNavigateResult; + // Warning: (ae-forgotten-export) The symbol "UseParamsRoute" needs to be exported by the entry point index.d.ts + // + // (undocumented) + useParams: UseParamsRoute; + // Warning: (ae-forgotten-export) The symbol "UseRouteContextRoute" needs to be exported by the entry point index.d.ts + // + // (undocumented) + useRouteContext: UseRouteContextRoute; + // Warning: (ae-forgotten-export) The symbol "UseSearchRoute" needs to be exported by the entry point index.d.ts + // + // (undocumented) + useSearch: UseSearchRoute; +} + +// @public (undocumented) +export function lazyRouteComponent, TKey extends keyof T = 'default'>(importer: () => Promise, exportName?: TKey, ssr?: () => boolean): T[TKey] extends (props: infer TProps) => any ? AsyncRouteComponent : never; + +export { LazyRouteOptions } + +// @public +export const Link: Vue.Component & Vue.Component & LinkComponent<"a">; + +// @public (undocumented) +export type LinkComponent = (props: LinkComponentProps) => Vue.VNode; + +// Warning: (ae-forgotten-export) The symbol "LinkComponentVueProps" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type LinkComponentProps = LinkComponentVueProps & LinkProps; + +// @public (undocumented) +export interface LinkComponentRoute { + // (undocumented) + (props: LinkComponentProps<'a', TRouter, this['defaultFrom'], TTo, this['defaultFrom'], TMaskTo>): Vue.VNode; + // (undocumented) + defaultFrom: TDefaultFrom; +} + +export { LinkOptions } + +// Warning: (ae-forgotten-export) The symbol "LinkOptionsFn" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export const linkOptions: LinkOptionsFn<'a'>; + +// Warning: (ae-forgotten-export) The symbol "LinkPropsChildren" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type LinkProps = ActiveLinkOptions & LinkPropsChildren; + +export { ListenerFn } + +export { LoaderFnContext } + +export { LocationRewrite } + +export { LocationRewriteFunction } + +export { LooseAsyncReturnType } + +export { LooseReturnType } + +// @public (undocumented) +export type MakeMatchRouteOptions = UseMatchRouteOptions & { + children?: ((params?: ResolveRoute['types']['allParams']) => Vue.VNode) | Vue.VNode; +}; + +export { MakeOptionalPathParams } + +export { MakeRemountDepsOptionsUnion } + +export { MakeRouteMatch } + +export { MakeRouteMatchUnion } + +export { Manifest } + +// @public (undocumented) +export const Match: Vue.DefineComponent, () => VNode, {}, {}, {}, Vue.ComponentOptionsMixin, Vue.ComponentOptionsMixin, {}, string, Vue.PublicProps, Readonly> & Readonly<{}>, {}, {}, {}, {}, string, Vue.ComponentProvideOptions, true, {}, any>; + +// @public (undocumented) +export const Matches: Vue.DefineComponent<{}, () => Vue.VNode, {}, {}, {}, Vue.ComponentOptionsMixin, Vue.ComponentOptionsMixin, {}, string, Vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, Vue.ComponentProvideOptions, true, {}, any>; + +export { MatchLocation } + +// Warning: (ae-forgotten-export) The symbol "MatchRouteComponentType" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export const MatchRoute: MatchRouteComponentType; + +export { MatchRouteOptions } + +export { MergeAll } + +export { MetaDescriptor } + +// @public (undocumented) +export function Navigate(props: NavigateOptions): null; + +export { NavigateFn } + +export { NavigateOptions } + +export { notFound } + +export { NotFoundError } + +// @public (undocumented) +export class NotFoundRoute = {}, TLoaderFn = undefined, TChildren = unknown, TSSR = unknown, THandlers = undefined> extends Route { + constructor(options: Omit, 'caseSensitive' | 'parseParams' | 'stringifyParams' | 'path' | 'id' | 'params'>); +} + +// @public (undocumented) +export type NotFoundRouteComponent = SyncRouteComponent; + +export { NotFoundRouteProps } + +// @public (undocumented) +export const Outlet: Vue.DefineComponent<{}, () => VNode | null, {}, {}, {}, Vue.ComponentOptionsMixin, Vue.ComponentOptionsMixin, {}, string, Vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, Vue.ComponentProvideOptions, true, {}, any>; + +export { ParamsOptions } + +export { ParsedLocation } + +export { ParsedPath } + +export { ParseParamsFn } + +export { parseSearchWith } + +export { PathParamOptions } + +export { PreloadableObj } + +export { Redirect } + +export { redirect } + +export { RedirectOptions } + +export { Register } + +export { RegisteredRouter } + +export { RelativeToCurrentPath } + +export { RelativeToParentPath } + +export { RelativeToPath } + +export { RelativeToPathAutoComplete } + +export { RemountDepsOptions } + +export { RemoveLeadingSlashes } + +export { RemoveTrailingSlashes } + +export { replaceEqualDeep } + +export { ResolveAllContext } + +export { ResolveAllParamsFromParent } + +export { ResolvedRedirect } + +export { ResolveFullPath } + +export { ResolveFullSearchSchema } + +export { ResolveFullSearchSchemaInput } + +export { ResolveId } + +export { ResolveLoaderData } + +export { ResolveOptionalParams } + +export { ResolveParams } + +export { resolvePath } + +export { ResolveRelativePath } + +export { ResolveRequiredParams } + +export { ResolveRoute } + +export { ResolveRouteContext } + +export { ResolveSearchValidatorInput } + +export { ResolveSearchValidatorInputFn } + +export { ResolveValidatorInput } + +export { ResolveValidatorInputFn } + +export { ResolveValidatorOutput } + +export { ResolveValidatorOutputFn } + +export { retainSearchParams } + +// @public (undocumented) +export class RootRoute = {}, in out TLoaderFn = undefined, in out TChildren = unknown, in out TFileRouteTypes = unknown, in out TSSR = unknown, in out THandlers = undefined> extends BaseRootRoute implements RootRoute_2 { + // @deprecated + constructor(options?: RootRouteOptions); + // (undocumented) + Link: LinkComponentRoute<'/'>; + // (undocumented) + useLoaderData: UseLoaderDataRoute; + // (undocumented) + useLoaderDeps: UseLoaderDepsRoute; + // (undocumented) + useMatch: UseMatchRoute; + // (undocumented) + useNavigate: () => UseNavigateResult<"/">; + // (undocumented) + useParams: UseParamsRoute; + // (undocumented) + useRouteContext: UseRouteContextRoute; + // (undocumented) + useSearch: UseSearchRoute; +} + +export { RootRouteId } + +export { rootRouteId } + +export { RootRouteOptions } + +// @public @deprecated (undocumented) +export const rootRouteWithContext: typeof createRootRouteWithContext; + +// @public (undocumented) +export class Route, in out TCustomId extends RouteConstraints['TCustomId'] = string, in out TId extends RouteConstraints['TId'] = ResolveId, in out TSearchValidator = undefined, in out TParams = ResolveParams, in out TRouterContext = AnyContext, in out TRouteContextFn = AnyContext, in out TBeforeLoadFn = AnyContext, in out TLoaderDeps extends Record = {}, in out TLoaderFn = undefined, in out TChildren = unknown, in out TFileRouteTypes = unknown, in out TSSR = unknown, in out TMiddlewares = unknown, in out THandlers = undefined> extends BaseRoute implements Route_2 { + // @deprecated + constructor(options?: RouteOptions); + // (undocumented) + Link: LinkComponentRoute; + // (undocumented) + useLoaderData: UseLoaderDataRoute; + // (undocumented) + useLoaderDeps: UseLoaderDepsRoute; + // (undocumented) + useMatch: UseMatchRoute; + // (undocumented) + useNavigate: () => UseNavigateResult; + // (undocumented) + useParams: UseParamsRoute; + // (undocumented) + useRouteContext: UseRouteContextRoute; + // (undocumented) + useSearch: UseSearchRoute; +} + +// @public (undocumented) +export class RouteApi extends BaseRouteApi { + // @deprecated + constructor(input: { + id: TId; + }); + // (undocumented) + Link: LinkComponentRoute['fullPath']>; + // (undocumented) + notFound: (opts?: NotFoundError) => NotFoundError; + // (undocumented) + useLoaderData: UseLoaderDataRoute; + // (undocumented) + useLoaderDeps: UseLoaderDepsRoute; + // (undocumented) + useMatch: UseMatchRoute; + // (undocumented) + useNavigate: () => UseNavigateResult["fullPath"]>; + // (undocumented) + useParams: UseParamsRoute; + // (undocumented) + useRouteContext: UseRouteContextRoute; + // (undocumented) + useSearch: UseSearchRoute; +} + +export { RouteById } + +// @public (undocumented) +export type RouteComponent = AsyncRouteComponent; + +export { RouteConstraints } + +export { RouteContext } + +export { RouteContextFn } + +export { RouteContextOptions } + +export { RouteContextParameter } + +export { RouteIds } + +export { RouteLinkEntry } + +export { RouteLoaderFn } + +export { RouteMask } + +export { RouteMatch } + +export { RouteOptions } + +export { RoutePathOptions } + +export { RoutePathOptionsIntersection } + +// @public (undocumented) +export class Router = Record> extends RouterCore { + constructor(options: RouterConstructorOptions); +} + +export { RouterConstructorOptions } + +export { RouterContextOptions } + +// @public (undocumented) +export const RouterContextProvider: Vue.DefineComponent, () => Vue.VNode | Vue.VNode[] | undefined, {}, {}, {}, Vue.ComponentOptionsMixin, Vue.ComponentOptionsMixin, {}, string, Vue.PublicProps, Readonly> & Readonly<{}>, {}, {}, {}, {}, string, Vue.ComponentProvideOptions, true, {}, any>; + +export { RouterEvent } + +export { RouterEvents } + +export { RouterHistory } + +export { RouterListener } + +export { RouterManagedTag } + +export { RouterOptions } + +// @public (undocumented) +export type RouterProps = Record> = Omit, false, TRouter['history'], TDehydrated>, 'context' | 'pathParamsAllowedCharacters'> & { + router: TRouter; + context?: Partial, false, TRouter['history'], TDehydrated>['context']>; +}; + +// @public (undocumented) +export const RouterProvider: { + (props: { + router: TRouter; + routeTree?: TRouter["routeTree"]; + } & Record): Vue.VNode; + new (): { + $props: RouterProps; + }; +}; + +export { RouterState } + +// @public (undocumented) +export const ScriptOnce: Vue.DefineComponent, () => JSX.Element | null, {}, {}, {}, Vue.ComponentOptionsMixin, Vue.ComponentOptionsMixin, {}, string, Vue.PublicProps, Readonly> & Readonly<{}>, {}, {}, {}, {}, string, Vue.ComponentProvideOptions, true, {}, any>; + +// @public +export const Scripts: Vue.DefineComponent<{}, () => JSX.Element, {}, {}, {}, Vue.ComponentOptionsMixin, Vue.ComponentOptionsMixin, {}, string, Vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, Vue.ComponentProvideOptions, true, {}, any>; + +// @public @deprecated (undocumented) +function ScrollRestoration_2(_props: ScrollRestorationOptions): null; +export { ScrollRestoration_2 as ScrollRestoration } + +export { SearchFilter } + +export { SearchParamError } + +export { SearchParamOptions } + +export { SearchParser } + +export { SearchSchemaInput } + +export { SearchSerializer } + +export { SerializableExtensions } + +export { SerializationAdapter } + +// Warning: (ae-forgotten-export) The symbol "ShouldBlockFnArgs" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export type ShouldBlockFn = (args: ShouldBlockFnArgs) => boolean | Promise; + +export { StaticDataRouteOption } + +export { StringifyParamsFn } + +export { stringifySearchWith } + +export { stripSearchParams } + +// @public (undocumented) +export type SyncRouteComponent = (props: TProps) => Vue.VNode; + +export { ToMaskOptions } + +export { ToOptions } + +export { ToPathOption } + +export { ToSubOptions } + +export { TrailingSlashOption } + +export { TrimPath } + +export { trimPath } + +export { TrimPathLeft } + +export { trimPathLeft } + +export { TrimPathRight } + +export { trimPathRight } + +export { UpdatableRouteOptions } + +export { UpdatableStaticRouteOption } + +// @public (undocumented) +export function useAwaited(input: AwaitOptions): [data: T, promise: DeferredPromise]; + +// Warning: (ae-forgotten-export) The symbol "BlockerResolver" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export function useBlocker(opts: UseBlockerOpts): TWithResolver extends true ? Vue.Ref> : void; + +// Warning: (ae-forgotten-export) The symbol "LegacyBlockerOpts" needs to be exported by the entry point index.d.ts +// +// @public @deprecated (undocumented) +export function useBlocker(blockerFnOrOpts?: LegacyBlockerOpts): Vue.Ref; + +// Warning: (ae-forgotten-export) The symbol "LegacyBlockerFn" needs to be exported by the entry point index.d.ts +// +// @public @deprecated (undocumented) +export function useBlocker(blockerFn?: LegacyBlockerFn, condition?: boolean | any): Vue.Ref; + +// @public (undocumented) +export type UseBlockerOpts = { + shouldBlockFn: ShouldBlockFn; + enableBeforeUnload?: boolean | (() => boolean); + disabled?: boolean; + withResolver?: TWithResolver; +}; + +// @public (undocumented) +export function useCanGoBack(): Readonly>; + +// Warning: (ae-forgotten-export) The symbol "UseMatchesBaseOptions" needs to be exported by the entry point index.d.ts +// Warning: (ae-forgotten-export) The symbol "UseMatchesResult" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export function useChildMatches(opts?: UseMatchesBaseOptions): Vue.Ref>; + +// @public (undocumented) +export function useElementScrollRestoration(options: ({ + id: string; + getElement?: () => Window | Element | undefined | null; +} | { + id?: string; + getElement: () => Window | Element | undefined | null; +}) & { + getKey?: (location: ParsedLocation) => string; +}): ScrollRestorationEntry | undefined; + +// Warning: (ae-forgotten-export) The symbol "LinkHTMLAttributes" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export function useLinkProps | string = string, TTo extends string = '', TMaskFrom extends RoutePaths | string = TFrom, TMaskTo extends string = ''>(options: UseLinkPropsOptions): LinkHTMLAttributes; + +// @public (undocumented) +export type UseLinkPropsOptions | string = string, TTo extends string | undefined = '.', TMaskFrom extends RoutePaths | string = TFrom, TMaskTo extends string = '.'> = ActiveLinkOptions<'a', TRouter, TFrom, TTo, TMaskFrom, TMaskTo> & LinkHTMLAttributes; + +// Warning: (ae-forgotten-export) The symbol "UseLoaderDataOptions" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export function useLoaderData(opts: UseLoaderDataOptions): Vue.Ref>; + +// Warning: (ae-forgotten-export) The symbol "UseLoaderDepsOptions" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export function useLoaderDeps(opts: UseLoaderDepsOptions): Vue.Ref>; + +// Warning: (ae-forgotten-export) The symbol "UseLocationBaseOptions" needs to be exported by the entry point index.d.ts +// Warning: (ae-forgotten-export) The symbol "UseLocationResult" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export function useLocation(opts?: UseLocationBaseOptions): Vue.Ref>; + +// Warning: (ae-forgotten-export) The symbol "UseMatchOptions" needs to be exported by the entry point index.d.ts +// Warning: (ae-forgotten-export) The symbol "UseMatchResult" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export function useMatch(opts: UseMatchOptions, TSelected>): Vue.Ref, TThrow>>; + +// @public (undocumented) +export function useMatches(opts?: UseMatchesBaseOptions): Vue.Ref>; + +// @public (undocumented) +export function useMatchRoute(): (opts: UseMatchRouteOptions) => Vue.Ref["types"]["allParams"]>; + +// @public (undocumented) +export type UseMatchRouteOptions = ToSubOptionsProps & DeepPartial> & DeepPartial> & MaskOptions & MatchRouteOptions; + +// @public (undocumented) +export function useNavigate(_defaultOpts?: { + from?: FromPathOption; +}): UseNavigateResult; + +export { UseNavigateResult } + +// Warning: (ae-forgotten-export) The symbol "UseParamsOptions" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export function useParams(opts: UseParamsOptions, TSelected>): Vue.Ref, TThrow>>; + +// @public (undocumented) +export function useParentMatches(opts?: UseMatchesBaseOptions): Vue.Ref>; + +// @public (undocumented) +export function useRouteContext(opts: UseRouteContextOptions): Vue.Ref>; + +// @public (undocumented) +export function useRouter(opts?: { + warn?: boolean; +}): TRouter; + +// Warning: (ae-forgotten-export) The symbol "UseRouterStateOptions" needs to be exported by the entry point index.d.ts +// Warning: (ae-forgotten-export) The symbol "UseRouterStateResult" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export function useRouterState(opts?: UseRouterStateOptions): Vue.Ref>; + +// Warning: (ae-forgotten-export) The symbol "UseSearchOptions" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export function useSearch(opts: UseSearchOptions, TSelected>): Vue.Ref, TThrow>>; + +// @public (undocumented) +export const useTags: (assetCrossOrigin?: AssetCrossOriginConfig) => () => RouterManagedTag[]; + +export { ValidateFromPath } + +export { ValidateId } + +// @public (undocumented) +export type ValidateLinkOptions = Constrain, InferTo, InferMaskFrom, InferMaskTo>>; + +// @public (undocumented) +export type ValidateLinkOptionsArray = ReadonlyArray, TDefaultFrom extends string = string, TComp = 'a'> = { + [K in keyof TOptions]: ValidateLinkOptions; +}; + +export { ValidateNavigateOptions } + +export { ValidateNavigateOptionsArray } + +export { ValidateParams } + +export { ValidateRedirectOptions } + +export { ValidateRedirectOptionsArray } + +export { ValidateSearch } + +export { ValidateToPath } + +// @public (undocumented) +export type ValidateUseParamsOptions = Constrain, InferStrict, InferShouldThrow, InferSelected>>; + +export { ValidateUseParamsResult } + +// @public (undocumented) +export type ValidateUseSearchOptions = Constrain, InferStrict, InferShouldThrow, InferSelected>>; + +export { ValidateUseSearchResult } + +export { Validator } + +export { ValidatorAdapter } + +export { ValidatorFn } + +export { ValidatorObj } + +// @public (undocumented) +export type VueNode = Vue.VNode; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/vue-router/api/ssr/client.api.md b/packages/vue-router/api/ssr/client.api.md new file mode 100644 index 0000000000..fa565c262a --- /dev/null +++ b/packages/vue-router/api/ssr/client.api.md @@ -0,0 +1,33 @@ +## API Report File for "@tanstack/vue-router" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/ssr/client.d.ts`. Regenerate with `node scripts/api-report.mjs packages/vue-router` after a build. +> +> Imported as: +> +> - `@tanstack/vue-router/ssr/client` (`import`) + +```ts + +import { AnyRouter } from '@tanstack/router-core'; +import * as Vue from 'vue'; + +// @public (undocumented) +export const RouterClient: Vue.DefineComponent AnyRouter; + required: true; + }; +}>, () => Vue.VNode | null, {}, {}, {}, Vue.ComponentOptionsMixin, Vue.ComponentOptionsMixin, {}, string, Vue.PublicProps, Readonly AnyRouter; + required: true; + }; +}>> & Readonly<{}>, {}, {}, {}, {}, string, Vue.ComponentProvideOptions, true, {}, any>; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/vue-router/api/ssr/server.api.md b/packages/vue-router/api/ssr/server.api.md new file mode 100644 index 0000000000..8e65c014b4 --- /dev/null +++ b/packages/vue-router/api/ssr/server.api.md @@ -0,0 +1,63 @@ +## API Report File for "@tanstack/vue-router" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/ssr/server.d.ts`. Regenerate with `node scripts/api-report.mjs packages/vue-router` after a build. +> +> Imported as: +> +> - `@tanstack/vue-router/ssr/server` (`import`) + +```ts + +import { AnyRouter } from '@tanstack/router-core'; +import { Component } from 'vue'; +import { HandlerCallback } from '@tanstack/router-core/ssr/server'; +import * as Vue from 'vue'; + +// @public (undocumented) +export const defaultRenderHandler: HandlerCallback; + +// @public (undocumented) +export const defaultStreamHandler: HandlerCallback; + +// @public (undocumented) +export const renderRouterToStream: (input: { + request: Request; + router: AnyRouter; + responseHeaders: Headers; + App: Component; +}) => Promise undefined; +}>; + +// @public (undocumented) +export const renderRouterToString: (input: { + router: AnyRouter; + responseHeaders: Headers; + App: Component; +}) => Promise; + +// @public (undocumented) +export const RouterServer: Vue.DefineComponent AnyRouter; + required: true; + }; +}>, () => Vue.VNode, {}, {}, {}, Vue.ComponentOptionsMixin, Vue.ComponentOptionsMixin, {}, string, Vue.PublicProps, Readonly AnyRouter; + required: true; + }; +}>> & Readonly<{}>, {}, {}, {}, {}, string, Vue.ComponentProvideOptions, true, {}, any>; + + +export * from "@tanstack/router-core/ssr/server"; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/vue-start-client/api/index.api.md b/packages/vue-start-client/api/index.api.md new file mode 100644 index 0000000000..391a6a0b2c --- /dev/null +++ b/packages/vue-start-client/api/index.api.md @@ -0,0 +1,39 @@ +## API Report File for "@tanstack/vue-start-client" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/index.d.ts`. Regenerate with `node scripts/api-report.mjs packages/vue-start-client` after a build. +> +> Imported as: +> +> - `@tanstack/vue-start-client` (`import`) + +```ts + +import { AnyRouter } from '@tanstack/router-core'; +import { App } from 'vue'; +import { JSX } from 'vue/jsx-runtime'; +import * as Vue from 'vue'; + +// @public +export function configureHydrationSuppressions(app: App, _router: AnyRouter): void; + +// @public +export function hydrateStart(): Promise; + +// @public (undocumented) +export const StartClient: Vue.DefineComponent AnyRouter; + required: true; + }; +}>, () => JSX.Element, {}, {}, {}, Vue.ComponentOptionsMixin, Vue.ComponentOptionsMixin, {}, string, Vue.PublicProps, Readonly AnyRouter; + required: true; + }; +}>> & Readonly<{}>, {}, {}, {}, {}, string, Vue.ComponentProvideOptions, true, {}, any>; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/vue-start-server/api/index.api.md b/packages/vue-start-server/api/index.api.md new file mode 100644 index 0000000000..a2323a412a --- /dev/null +++ b/packages/vue-start-server/api/index.api.md @@ -0,0 +1,49 @@ +## API Report File for "@tanstack/vue-start-server" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/index.d.ts`. Regenerate with `node scripts/api-report.mjs packages/vue-start-server` after a build. +> +> Imported as: +> +> - `@tanstack/vue-start-server` (`import`) + +```ts + +import { AnyRouter } from '@tanstack/router-core'; +import { HandlerCallback } from '@tanstack/start-server-core'; +import { RequestHandler } from '@tanstack/start-server-core'; +import { RequestOptions } from '@tanstack/start-server-core'; +import * as Vue from 'vue'; + +// @public (undocumented) +export const defaultRenderHandler: HandlerCallback; + +// @public (undocumented) +export const defaultStreamHandler: HandlerCallback; + +export { RequestHandler } + +export { RequestOptions } + +// @public (undocumented) +export const StartServer: Vue.DefineComponent AnyRouter; + required: true; + }; +}>, () => Vue.VNode, {}, {}, {}, Vue.ComponentOptionsMixin, Vue.ComponentOptionsMixin, {}, string, Vue.PublicProps, Readonly AnyRouter; + required: true; + }; +}>> & Readonly<{}>, {}, {}, {}, {}, string, Vue.ComponentProvideOptions, true, {}, any>; + + +export * from "@tanstack/start-server-core"; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/vue-start/api/client-only.api.md b/packages/vue-start/api/client-only.api.md new file mode 100644 index 0000000000..d51a05cf74 --- /dev/null +++ b/packages/vue-start/api/client-only.api.md @@ -0,0 +1,15 @@ +## API Report File for "@tanstack/vue-start" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/client-only.d.ts`. Regenerate with `node scripts/api-report.mjs packages/vue-start` after a build. +> +> Imported as: +> +> - `@tanstack/vue-start/client-only` (`import`) + +```ts + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/vue-start/api/client-rpc.api.md b/packages/vue-start/api/client-rpc.api.md new file mode 100644 index 0000000000..c5f88381ad --- /dev/null +++ b/packages/vue-start/api/client-rpc.api.md @@ -0,0 +1,18 @@ +## API Report File for "@tanstack/vue-start" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/client-rpc.d.ts`. Regenerate with `node scripts/api-report.mjs packages/vue-start` after a build. +> +> Imported as: +> +> - `@tanstack/vue-start/client-rpc` (`import`) + +```ts + + +export * from "@tanstack/start-client-core/client-rpc"; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/vue-start/api/client.api.md b/packages/vue-start/api/client.api.md new file mode 100644 index 0000000000..2f3d4d891d --- /dev/null +++ b/packages/vue-start/api/client.api.md @@ -0,0 +1,18 @@ +## API Report File for "@tanstack/vue-start" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/client.d.ts`. Regenerate with `node scripts/api-report.mjs packages/vue-start` after a build. +> +> Imported as: +> +> - `@tanstack/vue-start/client` (`import`) + +```ts + + +export * from "@tanstack/vue-start-client"; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/vue-start/api/default-entry/server.api.md b/packages/vue-start/api/default-entry/server.api.md new file mode 100644 index 0000000000..20fe7d6fab --- /dev/null +++ b/packages/vue-start/api/default-entry/server.api.md @@ -0,0 +1,30 @@ +## API Report File for "@tanstack/vue-start" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/default-entry/esm/server.d.ts`. Regenerate with `node scripts/api-report.mjs packages/vue-start` after a build. +> +> Imported as: +> +> - `@tanstack/vue-start/server-entry` (`import`) + +```ts + +import { Register } from '@tanstack/vue-router'; +import { RequestHandler } from '@tanstack/vue-start-server'; + +// @public (undocumented) +export const createServerEntry: (entry: ServerEntry) => ServerEntry; + +// @public (undocumented) +const _default: ServerEntry; +export default _default; + +// @public (undocumented) +export type ServerEntry = { + fetch: RequestHandler; +}; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/vue-start/api/index.api.md b/packages/vue-start/api/index.api.md new file mode 100644 index 0000000000..b4bb082a42 --- /dev/null +++ b/packages/vue-start/api/index.api.md @@ -0,0 +1,43 @@ +## API Report File for "@tanstack/vue-start" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/index.d.ts`. Regenerate with `node scripts/api-report.mjs packages/vue-start` after a build. +> +> Imported as: +> +> - `@tanstack/vue-start` (`import`) + +```ts + +import { createClientOnlyFn } from '@tanstack/start-client-core'; +import { createCsrfMiddleware } from '@tanstack/start-client-core'; +import { createIsomorphicFn } from '@tanstack/start-client-core'; +import { createMiddleware } from '@tanstack/start-client-core'; +import { createServerFn } from '@tanstack/start-client-core'; +import { createServerOnlyFn } from '@tanstack/start-client-core'; +import { createStart } from '@tanstack/start-client-core'; + +export { createClientOnlyFn } + +export { createCsrfMiddleware } + +export { createIsomorphicFn } + +export { createMiddleware } + +export { createServerFn } + +export { createServerOnlyFn } + +export { createStart } + +// @public (undocumented) +export function useServerFn) => Promise>(serverFn: T): (...args: Parameters) => ReturnType; + + +export * from "@tanstack/start-client-core"; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/vue-start/api/plugin/rsbuild.api.md b/packages/vue-start/api/plugin/rsbuild.api.md new file mode 100644 index 0000000000..b55ea87abe --- /dev/null +++ b/packages/vue-start/api/plugin/rsbuild.api.md @@ -0,0 +1,21 @@ +## API Report File for "@tanstack/vue-start" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/plugin/rsbuild.d.ts`. Regenerate with `node scripts/api-report.mjs packages/vue-start` after a build. +> +> Imported as: +> +> - `@tanstack/vue-start/plugin/rsbuild` (`import`) + +```ts + +import { RsbuildPlugin } from '@rsbuild/core'; +import { TanStackStartRsbuildInputConfig } from '@tanstack/start-plugin-core/rsbuild'; + +// @public (undocumented) +export function tanstackStart(options?: TanStackStartRsbuildInputConfig): RsbuildPlugin; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/vue-start/api/plugin/vite.api.md b/packages/vue-start/api/plugin/vite.api.md new file mode 100644 index 0000000000..3ab8c0cba3 --- /dev/null +++ b/packages/vue-start/api/plugin/vite.api.md @@ -0,0 +1,21 @@ +## API Report File for "@tanstack/vue-start" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/plugin/vite.d.ts`. Regenerate with `node scripts/api-report.mjs packages/vue-start` after a build. +> +> Imported as: +> +> - `@tanstack/vue-start/plugin/vite` (`import`) + +```ts + +import { PluginOption } from 'vite'; +import { TanStackStartViteInputConfig } from '@tanstack/start-plugin-core/vite'; + +// @public (undocumented) +export function tanstackStart(options?: TanStackStartViteInputConfig): Array; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/vue-start/api/server-only.api.md b/packages/vue-start/api/server-only.api.md new file mode 100644 index 0000000000..f42385e1f3 --- /dev/null +++ b/packages/vue-start/api/server-only.api.md @@ -0,0 +1,15 @@ +## API Report File for "@tanstack/vue-start" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/server-only.d.ts`. Regenerate with `node scripts/api-report.mjs packages/vue-start` after a build. +> +> Imported as: +> +> - `@tanstack/vue-start/server-only` (`import`) + +```ts + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/vue-start/api/server-rpc.api.md b/packages/vue-start/api/server-rpc.api.md new file mode 100644 index 0000000000..fe5f3a9c2a --- /dev/null +++ b/packages/vue-start/api/server-rpc.api.md @@ -0,0 +1,19 @@ +## API Report File for "@tanstack/vue-start" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/server-rpc.d.ts`. Regenerate with `node scripts/api-report.mjs packages/vue-start` after a build. +> +> Imported as: +> +> - `@tanstack/vue-start/server-rpc` (`import`) + +```ts + +import { createServerRpc } from '@tanstack/start-server-core/createServerRpc'; + +export { createServerRpc } + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/vue-start/api/server.api.md b/packages/vue-start/api/server.api.md new file mode 100644 index 0000000000..0dc4f62d37 --- /dev/null +++ b/packages/vue-start/api/server.api.md @@ -0,0 +1,18 @@ +## API Report File for "@tanstack/vue-start" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/server.d.ts`. Regenerate with `node scripts/api-report.mjs packages/vue-start` after a build. +> +> Imported as: +> +> - `@tanstack/vue-start/server` (`import`) + +```ts + + +export * from "@tanstack/vue-start-server"; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/vue-start/api/ssr-rpc.api.md b/packages/vue-start/api/ssr-rpc.api.md new file mode 100644 index 0000000000..f1a7a1917c --- /dev/null +++ b/packages/vue-start/api/ssr-rpc.api.md @@ -0,0 +1,19 @@ +## API Report File for "@tanstack/vue-start" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +> Declarations: `dist/esm/ssr-rpc.d.ts`. Regenerate with `node scripts/api-report.mjs packages/vue-start` after a build. +> +> Imported as: +> +> - `@tanstack/vue-start/ssr-rpc` (`import`) + +```ts + +import { createSsrRpc } from '@tanstack/start-server-core/createSsrRpc'; + +export { createSsrRpc } + +// (No @packageDocumentation comment for this package) + +``` From 03877373c37dc38ea2e7a3c32ee0340e02bb3fd0 Mon Sep 17 00:00:00 2001 From: Manuel Schiller <6340397+schiller-manuel@users.noreply.github.com> Date: Mon, 30 Nov 2026 02:32:05 +0100 Subject: [PATCH 3/6] chore(nx): check the API reports in test:build router-core, history, the router bindings and the Start packages run `node ../../scripts/api-report.mjs --check` after the declaration check. The script and the API Extractor version are `test:build` inputs; the reports already are, through `buildProduction`. Co-Authored-By: Claude Opus 5.5 --- nx.json | 4 +++- packages/history/package.json | 2 +- packages/react-router/package.json | 2 +- packages/react-start-client/package.json | 2 +- packages/react-start-rsc/package.json | 2 +- packages/react-start-server/package.json | 2 +- packages/react-start/package.json | 2 +- packages/router-core/package.json | 2 +- packages/solid-router/package.json | 2 +- packages/solid-start-client/package.json | 2 +- packages/solid-start-server/package.json | 2 +- packages/solid-start/package.json | 2 +- packages/start-client-core/package.json | 2 +- packages/start-fn-stubs/package.json | 2 +- packages/start-plugin-core/package.json | 2 +- packages/start-server-core/package.json | 2 +- packages/start-static-server-functions/package.json | 2 +- packages/start-storage-context/package.json | 2 +- packages/vue-router/package.json | 2 +- packages/vue-start-client/package.json | 2 +- packages/vue-start-server/package.json | 2 +- packages/vue-start/package.json | 2 +- 22 files changed, 24 insertions(+), 22 deletions(-) diff --git a/nx.json b/nx.json index c6b5d70994..e1908d791e 100644 --- a/nx.json +++ b/nx.json @@ -195,7 +195,9 @@ "inputs": [ "buildProduction", "dependentTaskOutputs", - "{workspaceRoot}/scripts/check-published-types.mjs" + "{workspaceRoot}/scripts/check-published-types.mjs", + "{workspaceRoot}/scripts/api-report.mjs", + { "externalDependencies": ["@microsoft/api-extractor"] } ] }, "test:e2e*": { diff --git a/packages/history/package.json b/packages/history/package.json index 0734f6eeb7..5b0ccc8986 100644 --- a/packages/history/package.json +++ b/packages/history/package.json @@ -28,7 +28,7 @@ "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js", "test:types:ts60": "tsc6", "test:types:ts70": "tsc", - "test:build": "publint --strict && attw --ignore-rules no-resolution --pack . && node ../../scripts/check-published-types.mjs", + "test:build": "publint --strict && attw --ignore-rules no-resolution --pack . && node ../../scripts/check-published-types.mjs && node ../../scripts/api-report.mjs --check", "test:unit": "vitest", "test:unit:dev": "pnpm run test:unit --watch", "compile": "tsc6 -p tsconfig.internal.json", diff --git a/packages/react-router/package.json b/packages/react-router/package.json index 12fc8009d3..40297f9f5c 100644 --- a/packages/react-router/package.json +++ b/packages/react-router/package.json @@ -37,7 +37,7 @@ "test:unit:dev": "pnpm run test:unit --watch --hideSkippedTests", "test:perf": "vitest bench", "test:perf:dev": "pnpm run test:perf --watch --hideSkippedTests", - "test:build": "publint --strict && attw --ignore-rules no-resolution --pack . && node ../../scripts/check-published-types.mjs", + "test:build": "publint --strict && attw --ignore-rules no-resolution --pack . && node ../../scripts/check-published-types.mjs && node ../../scripts/api-report.mjs --check", "compile": "tsc6 -p tsconfig.internal.json", "build": "vite build" }, diff --git a/packages/react-start-client/package.json b/packages/react-start-client/package.json index 83c4f6a96d..0cf16ed018 100644 --- a/packages/react-start-client/package.json +++ b/packages/react-start-client/package.json @@ -36,7 +36,7 @@ "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js", "test:types:ts60": "tsc6", "test:types:ts70": "tsc", - "test:build": "publint --strict && attw --ignore-rules no-resolution --pack . && node ../../scripts/check-published-types.mjs", + "test:build": "publint --strict && attw --ignore-rules no-resolution --pack . && node ../../scripts/check-published-types.mjs && node ../../scripts/api-report.mjs --check", "compile": "tsc6 -p tsconfig.internal.json", "build": "vite build" }, diff --git a/packages/react-start-rsc/package.json b/packages/react-start-rsc/package.json index 3d39d5f8b2..78e6284a3f 100644 --- a/packages/react-start-rsc/package.json +++ b/packages/react-start-rsc/package.json @@ -35,7 +35,7 @@ "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js", "test:types:ts60": "tsc6", "test:types:ts70": "tsc", - "test:build": "publint --strict && attw --ignore-rules no-resolution --pack . && node ../../scripts/check-published-types.mjs", + "test:build": "publint --strict && attw --ignore-rules no-resolution --pack . && node ../../scripts/check-published-types.mjs && node ../../scripts/api-report.mjs --check", "compile": "tsc6 -p tsconfig.internal.json", "build": "vite build" }, diff --git a/packages/react-start-server/package.json b/packages/react-start-server/package.json index bb762825b5..7e7ff35b91 100644 --- a/packages/react-start-server/package.json +++ b/packages/react-start-server/package.json @@ -35,7 +35,7 @@ "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js", "test:types:ts60": "tsc6", "test:types:ts70": "tsc", - "test:build": "publint --strict && attw --ignore-rules no-resolution --pack . && node ../../scripts/check-published-types.mjs", + "test:build": "publint --strict && attw --ignore-rules no-resolution --pack . && node ../../scripts/check-published-types.mjs && node ../../scripts/api-report.mjs --check", "compile": "tsc6 -p tsconfig.internal.json", "build": "vite build" }, diff --git a/packages/react-start/package.json b/packages/react-start/package.json index 2059e90f9e..2970cd45de 100644 --- a/packages/react-start/package.json +++ b/packages/react-start/package.json @@ -26,7 +26,7 @@ "scripts": { "clean": "rimraf ./dist ./dist-ts && rimraf ./coverage", "test": "pnpm test:build", - "test:build": "publint --strict && attw --ignore-rules no-resolution --pack . && node ../../scripts/check-published-types.mjs", + "test:build": "publint --strict && attw --ignore-rules no-resolution --pack . && node ../../scripts/check-published-types.mjs && node ../../scripts/api-report.mjs --check", "compile": "tsc6 -p tsconfig.internal.json", "build": "vite build && vite build -c vite.config.server-entry.ts" }, diff --git a/packages/router-core/package.json b/packages/router-core/package.json index 2df3ede3ad..fb643cb03c 100644 --- a/packages/router-core/package.json +++ b/packages/router-core/package.json @@ -28,7 +28,7 @@ "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js", "test:types:ts60": "tsc6", "test:types:ts70": "tsc", - "test:build": "publint --strict && attw --ignore-rules no-resolution --pack . && node ../../scripts/check-published-types.mjs", + "test:build": "publint --strict && attw --ignore-rules no-resolution --pack . && node ../../scripts/check-published-types.mjs && node ../../scripts/api-report.mjs --check", "test:unit": "vitest", "test:unit:dev": "pnpm run test:unit --watch", "compile": "tsc6 -p tsconfig.internal.json", diff --git a/packages/solid-router/package.json b/packages/solid-router/package.json index eee0c8d6b0..6a9fc94041 100644 --- a/packages/solid-router/package.json +++ b/packages/solid-router/package.json @@ -37,7 +37,7 @@ "test:unit:dev": "pnpm run test:unit --watch --hideSkippedTests", "test:perf": "vitest bench", "test:perf:dev": "pnpm run test:perf --watch --hideSkippedTests", - "test:build": "publint --strict && attw --ignore-rules no-resolution --pack . && node ../../scripts/check-published-types.mjs", + "test:build": "publint --strict && attw --ignore-rules no-resolution --pack . && node ../../scripts/check-published-types.mjs && node ../../scripts/api-report.mjs --check", "compile": "tsc6 -p tsconfig.internal.json", "build": "vite build && tsc -p tsconfig.build.json" }, diff --git a/packages/solid-start-client/package.json b/packages/solid-start-client/package.json index 48da7b8f6f..c5ece6124d 100644 --- a/packages/solid-start-client/package.json +++ b/packages/solid-start-client/package.json @@ -36,7 +36,7 @@ "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js", "test:types:ts60": "tsc6", "test:types:ts70": "tsc", - "test:build": "publint --strict && attw --ignore-rules no-resolution --pack . && node ../../scripts/check-published-types.mjs", + "test:build": "publint --strict && attw --ignore-rules no-resolution --pack . && node ../../scripts/check-published-types.mjs && node ../../scripts/api-report.mjs --check", "compile": "tsc6 -p tsconfig.internal.json", "build": "vite build" }, diff --git a/packages/solid-start-server/package.json b/packages/solid-start-server/package.json index be49ae24a9..8c60d18533 100644 --- a/packages/solid-start-server/package.json +++ b/packages/solid-start-server/package.json @@ -35,7 +35,7 @@ "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js", "test:types:ts60": "tsc6", "test:types:ts70": "tsc", - "test:build": "publint --strict && attw --ignore-rules no-resolution --pack . && node ../../scripts/check-published-types.mjs", + "test:build": "publint --strict && attw --ignore-rules no-resolution --pack . && node ../../scripts/check-published-types.mjs && node ../../scripts/api-report.mjs --check", "compile": "tsc6 -p tsconfig.internal.json", "build": "vite build" }, diff --git a/packages/solid-start/package.json b/packages/solid-start/package.json index 9e46cbb1ac..1ef3d7f045 100644 --- a/packages/solid-start/package.json +++ b/packages/solid-start/package.json @@ -27,7 +27,7 @@ "clean": "rimraf ./dist ./dist-ts && rimraf ./coverage", "test": "pnpm test:build", "test:unit": "vitest", - "test:build": "publint --strict && attw --ignore-rules no-resolution --pack . && node ../../scripts/check-published-types.mjs", + "test:build": "publint --strict && attw --ignore-rules no-resolution --pack . && node ../../scripts/check-published-types.mjs && node ../../scripts/api-report.mjs --check", "compile": "tsc6 -p tsconfig.internal.json", "build": "vite build && vite build -c vite.config.server-entry.ts" }, diff --git a/packages/start-client-core/package.json b/packages/start-client-core/package.json index d62b267d0d..71587b0ebd 100644 --- a/packages/start-client-core/package.json +++ b/packages/start-client-core/package.json @@ -36,7 +36,7 @@ "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js", "test:types:ts60": "tsc6", "test:types:ts70": "tsc", - "test:build": "publint --strict && attw --ignore-rules no-resolution --pack . && node ../../scripts/check-published-types.mjs", + "test:build": "publint --strict && attw --ignore-rules no-resolution --pack . && node ../../scripts/check-published-types.mjs && node ../../scripts/api-report.mjs --check", "compile": "tsc6 -p tsconfig.internal.json", "build": "vite build" }, diff --git a/packages/start-fn-stubs/package.json b/packages/start-fn-stubs/package.json index e2492ae685..c0043fc758 100644 --- a/packages/start-fn-stubs/package.json +++ b/packages/start-fn-stubs/package.json @@ -34,7 +34,7 @@ "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js", "test:types:ts60": "tsc6", "test:types:ts70": "tsc", - "test:build": "publint --strict && attw --ignore-rules no-resolution --pack . && node ../../scripts/check-published-types.mjs", + "test:build": "publint --strict && attw --ignore-rules no-resolution --pack . && node ../../scripts/check-published-types.mjs && node ../../scripts/api-report.mjs --check", "compile": "tsc6 -p tsconfig.internal.json", "build": "vite build" }, diff --git a/packages/start-plugin-core/package.json b/packages/start-plugin-core/package.json index 3170844a55..ca91d4b5df 100644 --- a/packages/start-plugin-core/package.json +++ b/packages/start-plugin-core/package.json @@ -38,7 +38,7 @@ "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js", "test:types:ts60": "tsc6", "test:types:ts70": "tsc", - "test:build": "publint --strict && attw --ignore-rules no-resolution --pack . && node ../../scripts/check-published-types.mjs", + "test:build": "publint --strict && attw --ignore-rules no-resolution --pack . && node ../../scripts/check-published-types.mjs && node ../../scripts/api-report.mjs --check", "compile": "tsc6 -p tsconfig.internal.json", "build": "vite build" }, diff --git a/packages/start-server-core/package.json b/packages/start-server-core/package.json index 94485caf58..b695823fb1 100644 --- a/packages/start-server-core/package.json +++ b/packages/start-server-core/package.json @@ -36,7 +36,7 @@ "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js", "test:types:ts60": "tsc6", "test:types:ts70": "tsc", - "test:build": "publint --strict && attw --ignore-rules no-resolution --pack . && node ../../scripts/check-published-types.mjs", + "test:build": "publint --strict && attw --ignore-rules no-resolution --pack . && node ../../scripts/check-published-types.mjs && node ../../scripts/api-report.mjs --check", "compile": "tsc6 -p tsconfig.internal.json", "build": "vite build" }, diff --git a/packages/start-static-server-functions/package.json b/packages/start-static-server-functions/package.json index 21e79b2320..bc5ee5b753 100644 --- a/packages/start-static-server-functions/package.json +++ b/packages/start-static-server-functions/package.json @@ -36,7 +36,7 @@ "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js", "test:types:ts60": "tsc6", "test:types:ts70": "tsc", - "test:build": "publint --strict && attw --ignore-rules no-resolution --pack . && node ../../scripts/check-published-types.mjs", + "test:build": "publint --strict && attw --ignore-rules no-resolution --pack . && node ../../scripts/check-published-types.mjs && node ../../scripts/api-report.mjs --check", "compile": "tsc6 -p tsconfig.internal.json", "build": "vite build" }, diff --git a/packages/start-storage-context/package.json b/packages/start-storage-context/package.json index 31e148e373..d7caadfa98 100644 --- a/packages/start-storage-context/package.json +++ b/packages/start-storage-context/package.json @@ -36,7 +36,7 @@ "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js", "test:types:ts60": "tsc6", "test:types:ts70": "tsc", - "test:build": "publint --strict && attw --ignore-rules no-resolution --pack . && node ../../scripts/check-published-types.mjs", + "test:build": "publint --strict && attw --ignore-rules no-resolution --pack . && node ../../scripts/check-published-types.mjs && node ../../scripts/api-report.mjs --check", "compile": "tsc6 -p tsconfig.internal.json", "build": "vite build" }, diff --git a/packages/vue-router/package.json b/packages/vue-router/package.json index a0f6aa260e..ed6feb39a6 100644 --- a/packages/vue-router/package.json +++ b/packages/vue-router/package.json @@ -33,7 +33,7 @@ "test:unit:dev": "pnpm run test:unit --watch --hideSkippedTests", "test:perf": "vitest bench", "test:perf:dev": "pnpm run test:perf --watch --hideSkippedTests", - "test:build": "publint --strict && attw --ignore-rules no-resolution --pack . && node ../../scripts/check-published-types.mjs", + "test:build": "publint --strict && attw --ignore-rules no-resolution --pack . && node ../../scripts/check-published-types.mjs && node ../../scripts/api-report.mjs --check", "compile": "tsc6 -p tsconfig.internal.json", "build": "vite build && tsc -p tsconfig.build.json" }, diff --git a/packages/vue-start-client/package.json b/packages/vue-start-client/package.json index 6f1786381c..bff677bf95 100644 --- a/packages/vue-start-client/package.json +++ b/packages/vue-start-client/package.json @@ -36,7 +36,7 @@ "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js", "test:types:ts60": "tsc6", "test:types:ts70": "tsc", - "test:build": "publint --strict && attw --ignore-rules no-resolution --pack . && node ../../scripts/check-published-types.mjs", + "test:build": "publint --strict && attw --ignore-rules no-resolution --pack . && node ../../scripts/check-published-types.mjs && node ../../scripts/api-report.mjs --check", "compile": "tsc6 -p tsconfig.internal.json", "build": "vite build" }, diff --git a/packages/vue-start-server/package.json b/packages/vue-start-server/package.json index 84e9afb243..1d2ed274be 100644 --- a/packages/vue-start-server/package.json +++ b/packages/vue-start-server/package.json @@ -35,7 +35,7 @@ "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js", "test:types:ts60": "tsc6", "test:types:ts70": "tsc", - "test:build": "publint --strict && attw --ignore-rules no-resolution --pack . && node ../../scripts/check-published-types.mjs", + "test:build": "publint --strict && attw --ignore-rules no-resolution --pack . && node ../../scripts/check-published-types.mjs && node ../../scripts/api-report.mjs --check", "compile": "tsc6 -p tsconfig.internal.json", "build": "vite build" }, diff --git a/packages/vue-start/package.json b/packages/vue-start/package.json index 22e9d305f9..437733eef1 100644 --- a/packages/vue-start/package.json +++ b/packages/vue-start/package.json @@ -26,7 +26,7 @@ "scripts": { "clean": "rimraf ./dist ./dist-ts && rimraf ./coverage", "test": "pnpm test:build", - "test:build": "publint --strict && attw --ignore-rules no-resolution --pack . && node ../../scripts/check-published-types.mjs", + "test:build": "publint --strict && attw --ignore-rules no-resolution --pack . && node ../../scripts/check-published-types.mjs && node ../../scripts/api-report.mjs --check", "compile": "tsc6 -p tsconfig.internal.json", "build": "vite build && vite build -c vite.config.server-entry.ts" }, From 7dd9aa47881af04b26604ff0072545090a8e3c8c Mon Sep 17 00:00:00 2001 From: Manuel Schiller <6340397+schiller-manuel@users.noreply.github.com> Date: Mon, 30 Nov 2026 02:32:05 +0100 Subject: [PATCH 4/6] docs(agents): describe the API reports Co-Authored-By: Claude Opus 5.5 --- AGENTS.md | 1 + 1 file changed, 1 insertion(+) diff --git a/AGENTS.md b/AGENTS.md index 32090c0c5d..48314470c6 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -26,6 +26,7 @@ CI=1 NX_DAEMON=false pnpm nx run-many -p -t --skipRemoteCache - Run one Nx command at a time. For a ~20-second startup/graph stall, stop, run `pnpm nx reset`, and retry once, then escalate. Do not apply that timeout to running tests. - For code changes, run affected packages' `test:unit`, `test:types`, and `test:eslint` where available, including affected consumers; use `test:e2e` for browser/app behavior and `test:build` for exports/build changes. Root `pnpm test` includes the full e2e suite. Published-code changes require `pnpm changeset`. +- `packages//api/**/*.api.md` are API Extractor reports of the published declarations, and `test:build` fails when one is stale. Adding, removing or changing a public export, member or signature changes them, and so does an `@internal` tag. Build the package, run `node scripts/api-report.mjs packages/` and commit the reports with the change. Never edit a report by hand. ## Runtime rules From c16ab47662594042f6c854e11f14e961e4b06e22 Mon Sep 17 00:00:00 2001 From: Manuel Schiller <6340397+schiller-manuel@users.noreply.github.com> Date: Mon, 30 Nov 2026 02:37:49 +0100 Subject: [PATCH 5/6] chore(scripts): list module augmentations in the API reports API Extractor leaves `declare module ''` and `declare global` blocks out of its report, yet the bindings add public fields to router-core's and history's interfaces that way. Each report now ends with an "Augmentations" section: every such block in the declaration files the entry reaches inside its own tree, printed by the TypeScript printer without comments or source layout, sorted by specifier, file and position. Entries without such blocks get no section. Co-Authored-By: Claude Opus 5.5 --- scripts/api-report.mjs | 160 +++++++++++++++++++++++++++++++++++- scripts/api-report.test.mjs | 81 ++++++++++++++++++ 2 files changed, 240 insertions(+), 1 deletion(-) diff --git a/scripts/api-report.mjs b/scripts/api-report.mjs index fd10fd65c1..1fed49cc21 100644 --- a/scripts/api-report.mjs +++ b/scripts/api-report.mjs @@ -81,6 +81,7 @@ export function generateReports(packageDir) { // trees repeat the same `declare global` blocks, so a program that mixes // them is not what any user compiles. const trees = Map.groupBy(entries, (entry) => entry.tree) + const augmentations = createAugmentationReader(compilerOptions) for (const treeEntries of trees.values()) { const files = treeEntries.map((entry) => path.join(packageDir, entry.file), @@ -136,7 +137,11 @@ export function generateReports(packageDir) { path.join(tmp, reportName + reportExtension), 'utf8', ) - reports.set(entry.report, addEntryHeader(generated, packageDir, entry)) + reports.set( + entry.report, + addEntryHeader(generated, packageDir, entry) + + augmentationSection(packageDir, entry, augmentations), + ) } } } finally { @@ -314,6 +319,159 @@ const jsxNames = { [ts.JsxEmit.ReactJSXDev]: 'react-jsxdev', } +// API Extractor leaves module augmentations (`declare module ''`) +// and `declare global` blocks out of its report, yet they are public API: the +// bindings add fields to router-core's interfaces that way. This section lists +// every such block in the declaration files that an entry reaches inside its +// own tree, printed by the TypeScript printer without comments and without the +// source layout, so that only a change to a declaration shows up. +function createAugmentationReader(compilerOptions) { + const { options } = ts.convertCompilerOptionsFromJson(compilerOptions, '/') + const printer = ts.createPrinter({ + newLine: ts.NewLineKind.LineFeed, + removeComments: true, + }) + const files = new Map() + const read = (file) => { + let result = files.get(file) + if (!result) { + const sf = ts.createSourceFile( + file, + fs.readFileSync(file, 'utf8'), + ts.ScriptTarget.Latest, + true, + ) + result = { imports: importedSpecifiers(sf), blocks: [] } + for (const statement of sf.statements) { + if ( + ts.isModuleDeclaration(statement) && + (ts.isStringLiteral(statement.name) || + statement.flags & ts.NodeFlags.GlobalAugmentation) + ) { + result.blocks.push({ + target: ts.isStringLiteral(statement.name) + ? statement.name.text + : undefined, + position: statement.getStart(sf), + text: printDetached(printer, statement), + }) + } + } + files.set(file, result) + } + return result + } + return { options, read } +} + +// Prints a declaration as if it had been built by hand: with every node +// detached from the source positions, the printer puts each member on its own +// line and writes string literals with double quotes, whatever the emitter's +// layout and quote style were. +function printDetached(printer, node) { + const detach = (n) => { + n.pos = -1 + n.end = -1 + ts.forEachChild(n, detach) + } + detach(node) + const empty = ts.createSourceFile( + 'augmentation.d.ts', + '', + ts.ScriptTarget.Latest, + ) + return printer.printNode(ts.EmitHint.Unspecified, node, empty) +} + +function importedSpecifiers(sf) { + const found = [] + const add = (node) => { + if (node && ts.isStringLiteralLike(node)) { + found.push(node.text) + } + } + const visit = (node) => { + if (ts.isImportDeclaration(node) || ts.isExportDeclaration(node)) { + add(node.moduleSpecifier) + } else if (ts.isImportTypeNode(node)) { + add( + ts.isLiteralTypeNode(node.argument) ? node.argument.literal : undefined, + ) + } else if ( + ts.isImportEqualsDeclaration(node) && + ts.isExternalModuleReference(node.moduleReference) + ) { + add(node.moduleReference.expression) + } + ts.forEachChild(node, visit) + } + visit(sf) + return found +} + +function augmentationSection(packageDir, entry, { options, read }) { + const treeDir = path.join(packageDir, 'dist', entry.tree) + const start = path.join(packageDir, entry.file) + const seen = new Set([start]) + const queue = [start] + const blocks = [] + while (queue.length > 0) { + const file = queue.shift() + const { imports, blocks: own } = read(file) + const relative = path.relative(treeDir, file).split(path.sep).join('/') + for (const block of own) { + blocks.push({ ...block, file: relative }) + } + for (const specifier of imports) { + const resolved = ts.resolveModuleName(specifier, file, options, ts.sys) + .resolvedModule?.resolvedFileName + if (!resolved) { + continue + } + const real = fs.realpathSync(resolved) + if (!isInside(treeDir, real) || seen.has(real)) { + continue + } + seen.add(real) + queue.push(real) + } + } + if (blocks.length === 0) { + return '' + } + // Module augmentations by specifier, then `declare global`, then by file and + // position. + const key = (b) => (b.target === undefined ? '1' : `0${b.target}`) + blocks.sort( + (a, b) => + compare(key(a), key(b)) || + compare(a.file, b.file) || + a.position - b.position, + ) + const treePath = path.posix.join('dist', entry.tree) + return [ + '', + '## Augmentations', + '', + `> The \`declare module\` and \`declare global\` blocks in the declaration files that this entry reaches in \`${treePath}\`, which API Extractor leaves out of the report above. Paths are relative to \`${treePath}\`.`, + '', + '```ts', + '', + ...blocks.flatMap((b) => [`// ${b.file}`, b.text, '']), + '```', + '', + ].join('\n') +} + +function compare(a, b) { + return a < b ? -1 : a > b ? 1 : 0 +} + +function isInside(dir, file) { + const relative = path.relative(dir, file) + return !relative.startsWith('..') && !path.isAbsolute(relative) +} + // Names the declaration file and the import paths that reach it, after API // Extractor's own header. function addEntryHeader(report, packageDir, entry) { diff --git a/scripts/api-report.test.mjs b/scripts/api-report.test.mjs index 121520318a..93e1b99c45 100644 --- a/scripts/api-report.test.mjs +++ b/scripts/api-report.test.mjs @@ -35,6 +35,32 @@ const files = { 'dist/esm/index.d.ts': [ "export type { RouteMatch } from './Matches.js';", "export { joinPaths } from './utils.js';", + "export type { Router } from './router.js';", + ].join('\n'), + // Augmentations, which API Extractor leaves out of its report. + 'dist/esm/router.d.ts': [ + 'export interface Router {', + ' id: string;', + '}', + "declare module 'history' {", + ' interface HistoryState {', + ' /** Set while a masked location is shown. */', + ' __tempLocation?: string;', + " __tempKey?: { kind: 'temp' };", + ' }', + '}', + 'declare global {', + ' var __CACHE__: { size: number } | undefined;', + '}', + ].join('\n'), + // No entry reaches this file. + 'dist/esm/unreached.d.ts': [ + "declare module 'history' {", + ' interface HistoryState {', + ' unreached?: true;', + ' }', + '}', + 'export {};', ].join('\n'), 'dist/esm/Matches.d.ts': [ 'interface MatchExtensions {', @@ -165,6 +191,61 @@ test('fails on an added or removed export, a missing report and a leftover repor assert.match(changes[1].diff, /^- export const isServer: false;$/m) }) +test('lists the augmentations that an entry reaches, and only those', (t) => { + const dir = setup() + t.after(() => fs.rmSync(dir, { recursive: true, force: true })) + const { reports } = generateReports(dir) + const index = reports.get('api/index.api.md') + + assert.equal( + index.slice(index.indexOf('## Augmentations')), + [ + '## Augmentations', + '', + '> The `declare module` and `declare global` blocks in the declaration files that this entry reaches in `dist/esm`, which API Extractor leaves out of the report above. Paths are relative to `dist/esm`.', + '', + '```ts', + '', + '// router.d.ts', + 'declare module "history" {', + ' interface HistoryState {', + ' __tempLocation?: string;', + ' __tempKey?: {', + ' kind: "temp";', + ' };', + ' }', + '}', + '', + '// router.d.ts', + 'declare global {', + ' var __CACHE__: {', + ' size: number;', + ' } | undefined;', + '}', + '', + '```', + '', + ].join('\n'), + ) + assert.doesNotMatch( + reports.get('api/isServer/server.api.md'), + /## Augmentations/, + ) + + syncReports(dir, reports, { write: true }) + const router = path.join(dir, 'dist/esm/router.d.ts') + fs.writeFileSync( + router, + fs.readFileSync(router, 'utf8').replace(/^.*__tempKey.*\n/m, ''), + ) + const changes = syncReports(dir, generateReports(dir).reports) + assert.deepEqual( + changes.map((c) => `${c.report} ${c.kind}`), + ['api/index.api.md changed'], + ) + assert.match(changes[0].diff, /^-\s+__tempKey\?: \{$/m) +}) + test('reads committed reports with Windows line endings as unchanged', (t) => { const dir = setup() t.after(() => fs.rmSync(dir, { recursive: true, force: true })) From deb48b8256442066ea14cf1627babfcb57cabda8 Mon Sep 17 00:00:00 2001 From: Manuel Schiller <6340397+schiller-manuel@users.noreply.github.com> Date: Mon, 30 Nov 2026 02:39:10 +0100 Subject: [PATCH 6/6] chore(packages): add module augmentations to the API reports Regenerated from a fresh build. 18 of the 102 reports gain an "Augmentations" section; the others are unchanged. Co-Authored-By: Claude Opus 5.5 --- packages/react-router/api/index.api.md | 90 +++++++++++++++++++ packages/react-router/api/index.rsc.api.md | 90 +++++++++++++++++++ packages/react-start-rsc/api/index.api.md | 16 ++++ packages/react-start-rsc/api/index.rsc.api.md | 21 +++++ .../api/serialization.client.api.md | 16 ++++ .../api/serialization.server.api.md | 16 ++++ packages/router-core/api/index.api.md | 32 +++++++ .../api/isServer/development.api.md | 25 ++++++ .../router-core/api/isServer/server.api.md | 25 ++++++ .../scroll-restoration-script/client.api.md | 25 ++++++ .../scroll-restoration-script/server.api.md | 25 ++++++ packages/router-core/api/ssr/client.api.md | 25 ++++++ packages/router-core/api/ssr/server.api.md | 25 ++++++ packages/solid-router/api/index.api.md | 86 ++++++++++++++++++ packages/solid-router/api/source/index.api.md | 86 ++++++++++++++++++ .../start-client-core/api/client/index.api.md | 16 ++++ packages/start-client-core/api/index.api.md | 34 +++++++ packages/vue-router/api/index.api.md | 77 ++++++++++++++++ 18 files changed, 730 insertions(+) diff --git a/packages/react-router/api/index.api.md b/packages/react-router/api/index.api.md index 1e6a2f5569..4c4726b77c 100644 --- a/packages/react-router/api/index.api.md +++ b/packages/react-router/api/index.api.md @@ -1215,3 +1215,93 @@ export { ValidatorObj } // (No @packageDocumentation comment for this package) ``` + +## Augmentations + +> The `declare module` and `declare global` blocks in the declaration files that this entry reaches in `dist/esm`, which API Extractor leaves out of the report above. Paths are relative to `dist/esm`. + +```ts + +// history.d.ts +declare module "@tanstack/history" { + interface HistoryState { + __tempLocation?: HistoryLocation; + __tempKey?: string; + __hashScrollIntoViewOptions?: boolean | ScrollIntoViewOptions; + } +} + +// Matches.d.ts +declare module "@tanstack/router-core" { + interface RouteMatchExtensions { + meta?: Array; + links?: Array; + scripts?: Array; + styles?: Array; + headScripts?: Array; + } +} + +// fileRoute.d.ts +declare module "@tanstack/router-core" { + interface LazyRoute { + useMatch: UseMatchRoute; + useRouteContext: UseRouteContextRoute; + useSearch: UseSearchRoute; + useParams: UseParamsRoute; + useLoaderDeps: UseLoaderDepsRoute; + useLoaderData: UseLoaderDataRoute; + useNavigate: () => UseNavigateResult; + } +} + +// route.d.ts +declare module "@tanstack/router-core" { + interface UpdatableRouteOptionsExtensions { + component?: RouteComponent; + errorComponent?: false | null | undefined | ErrorRouteComponent; + notFoundComponent?: NotFoundRouteComponent; + pendingComponent?: RouteComponent; + } + interface RootRouteOptionsExtensions { + shellComponent?: ({ children, }: { + children: React.ReactNode; + }) => React.ReactNode; + } + interface RouteExtensions { + useMatch: UseMatchRoute; + useRouteContext: UseRouteContextRoute; + useSearch: UseSearchRoute; + useParams: UseParamsRoute; + useLoaderDeps: UseLoaderDepsRoute; + useLoaderData: UseLoaderDataRoute; + useNavigate: () => UseNavigateResult; + Link: LinkComponentRoute; + } +} + +// router.d.ts +declare module "@tanstack/router-core" { + interface RouterOptionsExtensions { + defaultComponent?: RouteComponent; + defaultErrorComponent?: ErrorRouteComponent; + defaultPendingComponent?: RouteComponent; + defaultNotFoundComponent?: NotFoundRouteComponent; + Wrap?: (props: { + children: any; + }) => React.JSX.Element; + InnerWrap?: (props: { + children: any; + }) => React.JSX.Element; + defaultOnCatch?: (error: unknown, errorInfo: React.ErrorInfo) => void; + } +} + +// ssr/serializer.d.ts +declare module "@tanstack/router-core" { + interface SerializerExtensions { + ReadableStream: React.JSX.Element; + } +} + +``` diff --git a/packages/react-router/api/index.rsc.api.md b/packages/react-router/api/index.rsc.api.md index 7d6b777936..f2d0f4945c 100644 --- a/packages/react-router/api/index.rsc.api.md +++ b/packages/react-router/api/index.rsc.api.md @@ -1215,3 +1215,93 @@ export { ValidatorObj } // (No @packageDocumentation comment for this package) ``` + +## Augmentations + +> The `declare module` and `declare global` blocks in the declaration files that this entry reaches in `dist/esm`, which API Extractor leaves out of the report above. Paths are relative to `dist/esm`. + +```ts + +// history.d.ts +declare module "@tanstack/history" { + interface HistoryState { + __tempLocation?: HistoryLocation; + __tempKey?: string; + __hashScrollIntoViewOptions?: boolean | ScrollIntoViewOptions; + } +} + +// Matches.d.ts +declare module "@tanstack/router-core" { + interface RouteMatchExtensions { + meta?: Array; + links?: Array; + scripts?: Array; + styles?: Array; + headScripts?: Array; + } +} + +// fileRoute.d.ts +declare module "@tanstack/router-core" { + interface LazyRoute { + useMatch: UseMatchRoute; + useRouteContext: UseRouteContextRoute; + useSearch: UseSearchRoute; + useParams: UseParamsRoute; + useLoaderDeps: UseLoaderDepsRoute; + useLoaderData: UseLoaderDataRoute; + useNavigate: () => UseNavigateResult; + } +} + +// route.d.ts +declare module "@tanstack/router-core" { + interface UpdatableRouteOptionsExtensions { + component?: RouteComponent; + errorComponent?: false | null | undefined | ErrorRouteComponent; + notFoundComponent?: NotFoundRouteComponent; + pendingComponent?: RouteComponent; + } + interface RootRouteOptionsExtensions { + shellComponent?: ({ children, }: { + children: React.ReactNode; + }) => React.ReactNode; + } + interface RouteExtensions { + useMatch: UseMatchRoute; + useRouteContext: UseRouteContextRoute; + useSearch: UseSearchRoute; + useParams: UseParamsRoute; + useLoaderDeps: UseLoaderDepsRoute; + useLoaderData: UseLoaderDataRoute; + useNavigate: () => UseNavigateResult; + Link: LinkComponentRoute; + } +} + +// router.d.ts +declare module "@tanstack/router-core" { + interface RouterOptionsExtensions { + defaultComponent?: RouteComponent; + defaultErrorComponent?: ErrorRouteComponent; + defaultPendingComponent?: RouteComponent; + defaultNotFoundComponent?: NotFoundRouteComponent; + Wrap?: (props: { + children: any; + }) => React.JSX.Element; + InnerWrap?: (props: { + children: any; + }) => React.JSX.Element; + defaultOnCatch?: (error: unknown, errorInfo: React.ErrorInfo) => void; + } +} + +// ssr/serializer.d.ts +declare module "@tanstack/router-core" { + interface SerializerExtensions { + ReadableStream: React.JSX.Element; + } +} + +``` diff --git a/packages/react-start-rsc/api/index.api.md b/packages/react-start-rsc/api/index.api.md index aead387289..de4f8150bf 100644 --- a/packages/react-start-rsc/api/index.api.md +++ b/packages/react-start-rsc/api/index.api.md @@ -80,3 +80,19 @@ export const SERVER_COMPONENT_CSS_HREFS: unique symbol; // (No @packageDocumentation comment for this package) ``` + +## Augmentations + +> The `declare module` and `declare global` blocks in the declaration files that this entry reaches in `dist/esm`, which API Extractor leaves out of the report above. Paths are relative to `dist/esm`. + +```ts + +// ServerComponentTypes.d.ts +declare module "@tanstack/router-core" { + interface SerializableExtensions { + CompositeComponent: AnyCompositeComponent; + RenderableServerComponent: AnyRenderableServerComponent; + } +} + +``` diff --git a/packages/react-start-rsc/api/index.rsc.api.md b/packages/react-start-rsc/api/index.rsc.api.md index f1b69b3109..cf628fe761 100644 --- a/packages/react-start-rsc/api/index.rsc.api.md +++ b/packages/react-start-rsc/api/index.rsc.api.md @@ -79,3 +79,24 @@ export { renderToReadableStream } // (No @packageDocumentation comment for this package) ``` + +## Augmentations + +> The `declare module` and `declare global` blocks in the declaration files that this entry reaches in `dist/esm`, which API Extractor leaves out of the report above. Paths are relative to `dist/esm`. + +```ts + +// ServerComponentTypes.d.ts +declare module "@tanstack/router-core" { + interface SerializableExtensions { + CompositeComponent: AnyCompositeComponent; + RenderableServerComponent: AnyRenderableServerComponent; + } +} + +// rscSsrHandler.d.ts +declare global { + var __RSC_SSR__: RscSsrHandler | undefined; +} + +``` diff --git a/packages/react-start-rsc/api/serialization.client.api.md b/packages/react-start-rsc/api/serialization.client.api.md index 464dbd5ec9..a8da5973ba 100644 --- a/packages/react-start-rsc/api/serialization.client.api.md +++ b/packages/react-start-rsc/api/serialization.client.api.md @@ -21,3 +21,19 @@ export const rscSerializationAdapter: () => SerializationAdapter The `declare module` and `declare global` blocks in the declaration files that this entry reaches in `dist/esm`, which API Extractor leaves out of the report above. Paths are relative to `dist/esm`. + +```ts + +// ServerComponentTypes.d.ts +declare module "@tanstack/router-core" { + interface SerializableExtensions { + CompositeComponent: AnyCompositeComponent; + RenderableServerComponent: AnyRenderableServerComponent; + } +} + +``` diff --git a/packages/react-start-rsc/api/serialization.server.api.md b/packages/react-start-rsc/api/serialization.server.api.md index acd043daf2..906aaedaf7 100644 --- a/packages/react-start-rsc/api/serialization.server.api.md +++ b/packages/react-start-rsc/api/serialization.server.api.md @@ -25,3 +25,19 @@ slotUsagesStream: ReadableStream | undefined; // (No @packageDocumentation comment for this package) ``` + +## Augmentations + +> The `declare module` and `declare global` blocks in the declaration files that this entry reaches in `dist/esm`, which API Extractor leaves out of the report above. Paths are relative to `dist/esm`. + +```ts + +// ServerComponentTypes.d.ts +declare module "@tanstack/router-core" { + interface SerializableExtensions { + CompositeComponent: AnyCompositeComponent; + RenderableServerComponent: AnyRenderableServerComponent; + } +} + +``` diff --git a/packages/router-core/api/index.api.md b/packages/router-core/api/index.api.md index dbdc851779..024ac8dd67 100644 --- a/packages/router-core/api/index.api.md +++ b/packages/router-core/api/index.api.md @@ -2653,3 +2653,35 @@ export type WithoutEmpty = T extends any ? ({} extends T ? never : T) : never // (No @packageDocumentation comment for this package) ``` + +## Augmentations + +> The `declare module` and `declare global` blocks in the declaration files that this entry reaches in `dist/esm`, which API Extractor leaves out of the report above. Paths are relative to `dist/esm`. + +```ts + +// global.d.ts +declare global { + interface Window { + __TSR_ROUTER__?: AnyRouter; + } +} + +// load-client.d.ts +declare global { + interface Window { + [GLOBAL_TSR]?: TsrSsrGlobal; + [GLOBAL_SEROVAL]?: any; + } +} + +// router.d.ts +declare global { + var __TSR_CACHE__: { + routeTree: AnyRoute; + caseSensitive: boolean | undefined; + processRouteTreeResult: RouteTreeCaches; + } | undefined; +} + +``` diff --git a/packages/router-core/api/isServer/development.api.md b/packages/router-core/api/isServer/development.api.md index 9656287523..5555559760 100644 --- a/packages/router-core/api/isServer/development.api.md +++ b/packages/router-core/api/isServer/development.api.md @@ -28,3 +28,28 @@ export function loadServerRoute(router: AnyRouter, opts?: ServerLoadOptions): Pr // (No @packageDocumentation comment for this package) ``` + +## Augmentations + +> The `declare module` and `declare global` blocks in the declaration files that this entry reaches in `dist/esm`, which API Extractor leaves out of the report above. Paths are relative to `dist/esm`. + +```ts + +// load-client.d.ts +declare global { + interface Window { + [GLOBAL_TSR]?: TsrSsrGlobal; + [GLOBAL_SEROVAL]?: any; + } +} + +// router.d.ts +declare global { + var __TSR_CACHE__: { + routeTree: AnyRoute; + caseSensitive: boolean | undefined; + processRouteTreeResult: RouteTreeCaches; + } | undefined; +} + +``` diff --git a/packages/router-core/api/isServer/server.api.md b/packages/router-core/api/isServer/server.api.md index 1b41b6b7f4..e5fab88e9a 100644 --- a/packages/router-core/api/isServer/server.api.md +++ b/packages/router-core/api/isServer/server.api.md @@ -32,3 +32,28 @@ export function loadServerRoute(router: AnyRouter, opts?: ServerLoadOptions): Pr // (No @packageDocumentation comment for this package) ``` + +## Augmentations + +> The `declare module` and `declare global` blocks in the declaration files that this entry reaches in `dist/esm`, which API Extractor leaves out of the report above. Paths are relative to `dist/esm`. + +```ts + +// load-client.d.ts +declare global { + interface Window { + [GLOBAL_TSR]?: TsrSsrGlobal; + [GLOBAL_SEROVAL]?: any; + } +} + +// router.d.ts +declare global { + var __TSR_CACHE__: { + routeTree: AnyRoute; + caseSensitive: boolean | undefined; + processRouteTreeResult: RouteTreeCaches; + } | undefined; +} + +``` diff --git a/packages/router-core/api/scroll-restoration-script/client.api.md b/packages/router-core/api/scroll-restoration-script/client.api.md index cbb7f12506..2786d37923 100644 --- a/packages/router-core/api/scroll-restoration-script/client.api.md +++ b/packages/router-core/api/scroll-restoration-script/client.api.md @@ -24,3 +24,28 @@ export function getScrollRestorationScriptForRouter(_router: AnyRouter): null; // (No @packageDocumentation comment for this package) ``` + +## Augmentations + +> The `declare module` and `declare global` blocks in the declaration files that this entry reaches in `dist/esm`, which API Extractor leaves out of the report above. Paths are relative to `dist/esm`. + +```ts + +// load-client.d.ts +declare global { + interface Window { + [GLOBAL_TSR]?: TsrSsrGlobal; + [GLOBAL_SEROVAL]?: any; + } +} + +// router.d.ts +declare global { + var __TSR_CACHE__: { + routeTree: AnyRoute; + caseSensitive: boolean | undefined; + processRouteTreeResult: RouteTreeCaches; + } | undefined; +} + +``` diff --git a/packages/router-core/api/scroll-restoration-script/server.api.md b/packages/router-core/api/scroll-restoration-script/server.api.md index c21a034134..86b663bc1e 100644 --- a/packages/router-core/api/scroll-restoration-script/server.api.md +++ b/packages/router-core/api/scroll-restoration-script/server.api.md @@ -24,3 +24,28 @@ export function getScrollRestorationScriptForRouter(router: AnyRouter): string | // (No @packageDocumentation comment for this package) ``` + +## Augmentations + +> The `declare module` and `declare global` blocks in the declaration files that this entry reaches in `dist/esm`, which API Extractor leaves out of the report above. Paths are relative to `dist/esm`. + +```ts + +// load-client.d.ts +declare global { + interface Window { + [GLOBAL_TSR]?: TsrSsrGlobal; + [GLOBAL_SEROVAL]?: any; + } +} + +// router.d.ts +declare global { + var __TSR_CACHE__: { + routeTree: AnyRoute; + caseSensitive: boolean | undefined; + processRouteTreeResult: RouteTreeCaches; + } | undefined; +} + +``` diff --git a/packages/router-core/api/ssr/client.api.md b/packages/router-core/api/ssr/client.api.md index d252499841..4aab388360 100644 --- a/packages/router-core/api/ssr/client.api.md +++ b/packages/router-core/api/ssr/client.api.md @@ -122,3 +122,28 @@ export interface TsrSsrGlobal { // (No @packageDocumentation comment for this package) ``` + +## Augmentations + +> The `declare module` and `declare global` blocks in the declaration files that this entry reaches in `dist/esm`, which API Extractor leaves out of the report above. Paths are relative to `dist/esm`. + +```ts + +// load-client.d.ts +declare global { + interface Window { + [GLOBAL_TSR]?: TsrSsrGlobal; + [GLOBAL_SEROVAL]?: any; + } +} + +// router.d.ts +declare global { + var __TSR_CACHE__: { + routeTree: AnyRoute; + caseSensitive: boolean | undefined; + processRouteTreeResult: RouteTreeCaches; + } | undefined; +} + +``` diff --git a/packages/router-core/api/ssr/server.api.md b/packages/router-core/api/ssr/server.api.md index cad5ab1184..41036812a3 100644 --- a/packages/router-core/api/ssr/server.api.md +++ b/packages/router-core/api/ssr/server.api.md @@ -160,3 +160,28 @@ export function waitForRequest(value: T | PromiseLike, signal: AbortSignal // (No @packageDocumentation comment for this package) ``` + +## Augmentations + +> The `declare module` and `declare global` blocks in the declaration files that this entry reaches in `dist/esm`, which API Extractor leaves out of the report above. Paths are relative to `dist/esm`. + +```ts + +// load-client.d.ts +declare global { + interface Window { + [GLOBAL_TSR]?: TsrSsrGlobal; + [GLOBAL_SEROVAL]?: any; + } +} + +// router.d.ts +declare global { + var __TSR_CACHE__: { + routeTree: AnyRoute; + caseSensitive: boolean | undefined; + processRouteTreeResult: RouteTreeCaches; + } | undefined; +} + +``` diff --git a/packages/solid-router/api/index.api.md b/packages/solid-router/api/index.api.md index 776888a8ba..b52691cd2f 100644 --- a/packages/solid-router/api/index.api.md +++ b/packages/solid-router/api/index.api.md @@ -1172,3 +1172,89 @@ export { ValidatorObj } // (No @packageDocumentation comment for this package) ``` + +## Augmentations + +> The `declare module` and `declare global` blocks in the declaration files that this entry reaches in `dist/esm`, which API Extractor leaves out of the report above. Paths are relative to `dist/esm`. + +```ts + +// history.d.ts +declare module "@tanstack/history" { + interface HistoryState { + __tempLocation?: HistoryLocation; + __tempKey?: string; + __hashScrollIntoViewOptions?: boolean | ScrollIntoViewOptions; + } +} + +// Matches.d.ts +declare module "@tanstack/router-core" { + interface RouteMatchExtensions { + meta?: Array; + links?: Array; + scripts?: Array; + styles?: Array; + headScripts?: Array; + } +} + +// fileRoute.d.ts +declare module "@tanstack/router-core" { + interface LazyRoute { + useMatch: UseMatchRoute; + useRouteContext: UseRouteContextRoute; + useSearch: UseSearchRoute; + useParams: UseParamsRoute; + useLoaderDeps: UseLoaderDepsRoute; + useLoaderData: UseLoaderDataRoute; + useNavigate: () => UseNavigateResult; + } +} + +// route.d.ts +declare module "@tanstack/router-core" { + interface ErrorBoundaryTypes { + error: Error; + } + interface UpdatableRouteOptionsExtensions { + component?: RouteComponent; + errorComponent?: false | null | undefined | ErrorRouteComponent; + notFoundComponent?: NotFoundRouteComponent; + pendingComponent?: RouteComponent; + } + interface RootRouteOptionsExtensions { + shellComponent?: ({ children, }: { + children: Solid.JSX.Element; + }) => Solid.JSX.Element; + } + interface RouteExtensions { + useMatch: UseMatchRoute; + useRouteContext: UseRouteContextRoute; + useSearch: UseSearchRoute; + useParams: UseParamsRoute; + useLoaderDeps: UseLoaderDepsRoute; + useLoaderData: UseLoaderDataRoute; + useNavigate: () => UseNavigateResult; + Link: LinkComponentRoute; + } +} + +// router.d.ts +declare module "@tanstack/router-core" { + interface RouterOptionsExtensions { + defaultComponent?: RouteComponent; + defaultErrorComponent?: ErrorRouteComponent; + defaultPendingComponent?: RouteComponent; + defaultNotFoundComponent?: NotFoundRouteComponent; + Wrap?: (props: { + children: any; + }) => JSX.Element; + InnerWrap?: (props: { + children: any; + }) => JSX.Element; + defaultOnCatch?: (error: Error) => void; + } +} + +``` diff --git a/packages/solid-router/api/source/index.api.md b/packages/solid-router/api/source/index.api.md index c6dc769d56..2db0a6a536 100644 --- a/packages/solid-router/api/source/index.api.md +++ b/packages/solid-router/api/source/index.api.md @@ -1172,3 +1172,89 @@ export { ValidatorObj } // (No @packageDocumentation comment for this package) ``` + +## Augmentations + +> The `declare module` and `declare global` blocks in the declaration files that this entry reaches in `dist/source`, which API Extractor leaves out of the report above. Paths are relative to `dist/source`. + +```ts + +// history.d.ts +declare module "@tanstack/history" { + interface HistoryState { + __tempLocation?: HistoryLocation; + __tempKey?: string; + __hashScrollIntoViewOptions?: boolean | ScrollIntoViewOptions; + } +} + +// Matches.d.ts +declare module "@tanstack/router-core" { + interface RouteMatchExtensions { + meta?: Array; + links?: Array; + scripts?: Array; + styles?: Array; + headScripts?: Array; + } +} + +// fileRoute.d.ts +declare module "@tanstack/router-core" { + interface LazyRoute { + useMatch: UseMatchRoute; + useRouteContext: UseRouteContextRoute; + useSearch: UseSearchRoute; + useParams: UseParamsRoute; + useLoaderDeps: UseLoaderDepsRoute; + useLoaderData: UseLoaderDataRoute; + useNavigate: () => UseNavigateResult; + } +} + +// route.d.ts +declare module "@tanstack/router-core" { + interface ErrorBoundaryTypes { + error: Error; + } + interface UpdatableRouteOptionsExtensions { + component?: RouteComponent; + errorComponent?: false | null | undefined | ErrorRouteComponent; + notFoundComponent?: NotFoundRouteComponent; + pendingComponent?: RouteComponent; + } + interface RootRouteOptionsExtensions { + shellComponent?: ({ children, }: { + children: Solid.JSX.Element; + }) => Solid.JSX.Element; + } + interface RouteExtensions { + useMatch: UseMatchRoute; + useRouteContext: UseRouteContextRoute; + useSearch: UseSearchRoute; + useParams: UseParamsRoute; + useLoaderDeps: UseLoaderDepsRoute; + useLoaderData: UseLoaderDataRoute; + useNavigate: () => UseNavigateResult; + Link: LinkComponentRoute; + } +} + +// router.d.ts +declare module "@tanstack/router-core" { + interface RouterOptionsExtensions { + defaultComponent?: RouteComponent; + defaultErrorComponent?: ErrorRouteComponent; + defaultPendingComponent?: RouteComponent; + defaultNotFoundComponent?: NotFoundRouteComponent; + Wrap?: (props: { + children: any; + }) => JSX.Element; + InnerWrap?: (props: { + children: any; + }) => JSX.Element; + defaultOnCatch?: (error: Error) => void; + } +} + +``` diff --git a/packages/start-client-core/api/client/index.api.md b/packages/start-client-core/api/client/index.api.md index cba034545e..479f858d21 100644 --- a/packages/start-client-core/api/client/index.api.md +++ b/packages/start-client-core/api/client/index.api.md @@ -23,3 +23,19 @@ export * from "@tanstack/router-core/ssr/client"; // (No @packageDocumentation comment for this package) ``` + +## Augmentations + +> The `declare module` and `declare global` blocks in the declaration files that this entry reaches in `dist/esm`, which API Extractor leaves out of the report above. Paths are relative to `dist/esm`. + +```ts + +// client/hydrateStart.d.ts +declare global { + interface ImportMeta { + hot?: HotContext; + webpackHot?: HotContext; + } +} + +``` diff --git a/packages/start-client-core/api/index.api.md b/packages/start-client-core/api/index.api.md index 2989528cfe..cdfcbe5411 100644 --- a/packages/start-client-core/api/index.api.md +++ b/packages/start-client-core/api/index.api.md @@ -734,3 +734,37 @@ export const X_TSS_SERIALIZED = "x-tss-serialized"; // (No @packageDocumentation comment for this package) ``` + +## Augmentations + +> The `declare module` and `declare global` blocks in the declaration files that this entry reaches in `dist/esm`, which API Extractor leaves out of the report above. Paths are relative to `dist/esm`. + +```ts + +// createStart.d.ts +declare module "@tanstack/router-core" { + interface SerializableExtensions { + serverFn: { + [TSS_SERVER_FUNCTION]: true; + }; + } +} + +// serverRoute.d.ts +declare module "@tanstack/router-core" { + interface FilebaseRouteOptionsInterface = {}, TLoaderFn = undefined, TRouterContext = {}, TRouteContextFn = AnyContext, TBeforeLoadFn = AnyContext, TRemountDepsFn = AnyContext, TSSR = unknown, TServerMiddlewares = unknown, THandlers = undefined> { + server?: RouteServerOptions; + } + interface RouteTypes { + middleware: TServerMiddlewares; + allServerContext: ResolveAllServerContext; + } + interface BeforeLoadContextOptions { + serverContext?: Expand, ExtractHandlersContext>>; + } + interface LoaderFnContext { + serverContext?: Expand, ExtractHandlersContext>>; + } +} + +``` diff --git a/packages/vue-router/api/index.api.md b/packages/vue-router/api/index.api.md index 4948a4293b..53fa6f7185 100644 --- a/packages/vue-router/api/index.api.md +++ b/packages/vue-router/api/index.api.md @@ -1280,3 +1280,80 @@ export type VueNode = Vue.VNode; // (No @packageDocumentation comment for this package) ``` + +## Augmentations + +> The `declare module` and `declare global` blocks in the declaration files that this entry reaches in `dist/esm`, which API Extractor leaves out of the report above. Paths are relative to `dist/esm`. + +```ts + +// history.d.ts +declare module "@tanstack/history" { + interface HistoryState { + __tempLocation?: HistoryLocation; + __tempKey?: string; + __hashScrollIntoViewOptions?: boolean | ScrollIntoViewOptions; + } +} + +// Matches.d.ts +declare module "@tanstack/router-core" { + interface RouteMatchExtensions { + meta?: Array; + links?: Array; + scripts?: Array; + headScripts?: Array; + } +} + +// fileRoute.d.ts +declare module "@tanstack/router-core" { + interface LazyRoute { + useMatch: UseMatchRoute; + useRouteContext: UseRouteContextRoute; + useSearch: UseSearchRoute; + useParams: UseParamsRoute; + useLoaderDeps: UseLoaderDepsRoute; + useLoaderData: UseLoaderDataRoute; + useNavigate: () => UseNavigateResult; + } +} + +// route.d.ts +declare module "@tanstack/router-core" { + interface UpdatableRouteOptionsExtensions { + component?: RouteComponent | VueSFC; + errorComponent?: false | null | undefined | ErrorRouteComponent | VueSFC; + notFoundComponent?: NotFoundRouteComponent | VueSFC; + pendingComponent?: RouteComponent | VueSFC; + } + interface RouteExtensions { + useMatch: UseMatchRoute; + useRouteContext: UseRouteContextRoute; + useSearch: UseSearchRoute; + useParams: UseParamsRoute; + useLoaderDeps: UseLoaderDepsRoute; + useLoaderData: UseLoaderDataRoute; + useNavigate: () => UseNavigateResult; + Link: LinkComponentRoute; + } +} + +// router.d.ts +declare module "@tanstack/router-core" { + interface RouterOptionsExtensions { + defaultComponent?: RouteComponent | VueSFC; + defaultErrorComponent?: ErrorRouteComponent | VueSFC; + defaultPendingComponent?: RouteComponent | VueSFC; + defaultNotFoundComponent?: NotFoundRouteComponent | VueSFC; + Wrap?: (props: { + children: any; + }) => VNode; + InnerWrap?: (props: { + children: any; + }) => VNode; + defaultOnCatch?: (error: unknown) => void; + } +} + +```