/home/techb158/balavpn.abdallabala.com/node_modules/next/dist/shared/lib
NameSizeModeActions
errors/-0777rm
i18n/-0777rm
isomorphic/-0777rm
lazy-dynamic/-0777rm
page-path/-0777rm
router/-0777rm
segment-cache/-0777rm
turbopack/-0777rm
utils/-0777rm
amp-context.shared-runtime.d.ts850666editdlrm
amp-context.shared-runtime.js5920666editdlrm
amp-context.shared-runtime.js.map5810666editdlrm
amp-mode.d.ts1910666editdlrm
amp-mode.js4190666editdlrm
amp-mode.js.map4860666editdlrm
amp.d.ts430666editdlrm
amp.js10260666editdlrm
amp.js.map6080666editdlrm
app-dynamic.d.ts8750666editdlrm
app-dynamic.js12690666editdlrm
app-dynamic.js.map18880666editdlrm
app-router-context.shared-runtime.d.ts51030666editdlrm
app-router-context.shared-runtime.js16860666editdlrm
app-router-context.shared-runtime.js.map63390666editdlrm
bloom-filter.d.ts5980666editdlrm
bloom-filter.js29650666editdlrm
bloom-filter.js.map55080666editdlrm
canary-only.d.ts1700666editdlrm
canary-only.js12820666editdlrm
canary-only.js.map14660666editdlrm
constants.d.ts59880666editdlrm
constants.js149340666editdlrm
constants.js.map122990666editdlrm
deep-freeze.d.ts5120666editdlrm
deep-freeze.js8680666editdlrm
deep-freeze.js.map17600666editdlrm
deep-readonly.d.ts3890666editdlrm
deep-readonly.js3480666editdlrm
deep-readonly.js.map5650666editdlrm
dset.d.ts1170666editdlrm
dset.js19140666editdlrm
dset.js.map25700666editdlrm
dynamic.d.ts17110666editdlrm
dynamic.js54130666editdlrm
dynamic.js.map75250666editdlrm
encode-uri-path.d.ts610666editdlrm
encode-uri-path.js3620666editdlrm
encode-uri-path.js.map4690666editdlrm
error-source.d.ts2310666editdlrm
error-source.js8580666editdlrm
error-source.js.map10300666editdlrm
escape-regexp.d.ts650666editdlrm
escape-regexp.js6940666editdlrm
escape-regexp.js.map8520666editdlrm
fnv1a.d.ts3350666editdlrm
fnv1a.js27700666editdlrm
fnv1a.js.map40890666editdlrm
format-webpack-messages.d.ts820666editdlrm
format-webpack-messages.js84980666editdlrm
format-webpack-messages.js.map129940666editdlrm
get-hostname.d.ts4540666editdlrm
get-hostname.js6790666editdlrm
get-hostname.js.map13820666editdlrm
get-img-props.d.ts33540666editdlrm
get-img-props.js252010666editdlrm
get-img-props.js.map378620666editdlrm
get-rspack.d.ts1000666editdlrm
get-rspack.js25850666editdlrm
get-rspack.js.map27970666editdlrm
get-webpack-bundler.d.ts2640666editdlrm
get-webpack-bundler.js6320666editdlrm
get-webpack-bundler.js.map7250666editdlrm
hash.d.ts1090666editdlrm
hash.js13260666editdlrm
hash.js.map15260666editdlrm
head-manager-context.shared-runtime.d.ts2880666editdlrm
head-manager-context.shared-runtime.js6160666editdlrm
head-manager-context.shared-runtime.js.map8630666editdlrm
head.d.ts4460666editdlrm
head.js70060666editdlrm
head.js.map96060666editdlrm
hooks-client-context.shared-runtime.d.ts3080666editdlrm
hooks-client-context.shared-runtime.js11080666editdlrm
hooks-client-context.shared-runtime.js.map11450666editdlrm
html-context.shared-runtime.d.ts18890666editdlrm
html-context.shared-runtime.js11490666editdlrm
html-context.shared-runtime.js.map27870666editdlrm
htmlescape.d.ts1820666editdlrm
htmlescape.js14170666editdlrm
htmlescape.js.map16760666editdlrm
image-blur-svg.d.ts3700666editdlrm
image-blur-svg.js14950666editdlrm
image-blur-svg.js.map21220666editdlrm
image-config-context.shared-runtime.d.ts1630666editdlrm
image-config-context.shared-runtime.js6930666editdlrm
image-config-context.shared-runtime.js.map7660666editdlrm
image-config.d.ts43030666editdlrm
image-config.js14280666editdlrm
image-config.js.map59410666editdlrm
image-external.d.ts7420666editdlrm
image-external.js14850666editdlrm
image-external.js.map21760666editdlrm
image-loader.d.ts2710666editdlrm
image-loader.js50710666editdlrm
image-loader.js.map67600666editdlrm
invariant-error.d.ts1120666editdlrm
invariant-error.js5010666editdlrm
invariant-error.js.map6820666editdlrm
is-internal.d.ts3550666editdlrm
is-internal.js12980666editdlrm
is-internal.js.map12970666editdlrm
is-plain-object.d.ts1250666editdlrm
is-plain-object.js11800666editdlrm
is-plain-object.js.map12500666editdlrm
is-thenable.d.ts2330666editdlrm
is-thenable.js5370666editdlrm
is-thenable.js.map6790666editdlrm
loadable-context.shared-runtime.d.ts1560666editdlrm
loadable-context.shared-runtime.js6130666editdlrm
loadable-context.shared-runtime.js.map6520666editdlrm
loadable.shared-runtime.d.ts15430666editdlrm
loadable.shared-runtime.js84580666editdlrm
loadable.shared-runtime.js.map138400666editdlrm
magic-identifier.d.ts1280666editdlrm
magic-identifier.js36540666editdlrm
magic-identifier.js.map41460666editdlrm
match-local-pattern.d.ts2530666editdlrm
match-local-pattern.js13010666editdlrm
match-local-pattern.js.map16960666editdlrm
match-remote-pattern.d.ts2680666editdlrm
match-remote-pattern.js19310666editdlrm
match-remote-pattern.js.map27230666editdlrm
mitt.d.ts2630666editdlrm
mitt.js22470666editdlrm
mitt.js.map30140666editdlrm
modern-browserslist-target.d.ts1990666editdlrm
modern-browserslist-target.js6520666editdlrm
modern-browserslist-target.js.map8930666editdlrm
no-fallback-error.external.d.ts740666editdlrm
no-fallback-error.external.js4080666editdlrm
no-fallback-error.external.js.map4260666editdlrm
normalized-asset-prefix.d.ts880666editdlrm
normalized-asset-prefix.js9610666editdlrm
normalized-asset-prefix.js.map13140666editdlrm
promise-with-resolvers.d.ts820666editdlrm
promise-with-resolvers.js6060666editdlrm
promise-with-resolvers.js.map7790666editdlrm
router-context.shared-runtime.d.ts1480666editdlrm
router-context.shared-runtime.js5870666editdlrm
router-context.shared-runtime.js.map6220666editdlrm
runtime-config.external.d.ts2930666editdlrm
runtime-config.external.js7220666editdlrm
runtime-config.external.js.map6720666editdlrm
segment.d.ts5040666editdlrm
segment.js15620666editdlrm
segment.js.map17330666editdlrm
server-inserted-html.shared-runtime.d.ts2880666editdlrm
server-inserted-html.shared-runtime.js11710666editdlrm
server-inserted-html.shared-runtime.js.map13470666editdlrm
server-reference-info.d.ts11460666editdlrm
server-reference-info.js16010666editdlrm
server-reference-info.js.map33420666editdlrm
side-effect.d.ts4520666editdlrm
side-effect.js27490666editdlrm
side-effect.js.map39470666editdlrm
styled-jsx.d.ts430666editdlrm
styled-jsx.js990666editdlrm
styled-jsx.js.map2310666editdlrm
utils.d.ts92010666editdlrm
utils.js62890666editdlrm
utils.js.map160730666editdlrm
zod.d.ts3810666editdlrm
zod.js33590666editdlrm
zod.js.map45070666editdlrm
Edit: /home/techb158/balavpn.abdallabala.com/node_modules/next/dist/shared/lib/utils.d.ts (9201B)
import type { HtmlProps } from './html-context.shared-runtime'; import type { ComponentType, JSX } from 'react'; import type { DomainLocale } from '../../server/config'; import type { Env } from '@next/env'; import type { IncomingMessage, ServerResponse } from 'http'; import type { NextRouter } from './router/router'; import type { ParsedUrlQuery } from 'querystring'; import type { PreviewData } from '../../types'; import type { COMPILER_NAMES } from './constants'; import type fs from 'fs'; export type NextComponentType = ComponentType & { /** * Used for initial page load data population. Data returned from `getInitialProps` is serialized when server rendered. * Make sure to return plain `Object` without using `Date`, `Map`, `Set`. * @param context Context of `page` */ getInitialProps?(context: Context): InitialProps | Promise; }; export type DocumentType = NextComponentType; export type AppType

= NextComponentType>; export type AppTreeType = ComponentType; /** * Web vitals provided to _app.reportWebVitals by Core Web Vitals plugin developed by Google Chrome team. * https://nextjs.org/blog/next-9-4#integrated-web-vitals-reporting */ export declare const WEB_VITALS: readonly ["CLS", "FCP", "FID", "INP", "LCP", "TTFB"]; export type NextWebVitalsMetric = { id: string; startTime: number; value: number; attribution?: { [key: string]: unknown; }; } & ({ label: 'web-vital'; name: (typeof WEB_VITALS)[number]; } | { label: 'custom'; name: 'Next.js-hydration' | 'Next.js-route-change-to-render' | 'Next.js-render'; }); export type Enhancer = (Component: C) => C; export type ComponentsEnhancer = { enhanceApp?: Enhancer; enhanceComponent?: Enhancer; } | Enhancer; export type RenderPageResult = { html: string; head?: Array; }; export type RenderPage = (options?: ComponentsEnhancer) => DocumentInitialProps | Promise; export type BaseContext = { res?: ServerResponse; [k: string]: any; }; export type NEXT_DATA = { props: Record; page: string; query: ParsedUrlQuery; buildId: string; assetPrefix?: string; runtimeConfig?: { [key: string]: any; }; nextExport?: boolean; autoExport?: boolean; isFallback?: boolean; isExperimentalCompile?: boolean; dynamicIds?: (string | number)[]; err?: Error & { statusCode?: number; source?: typeof COMPILER_NAMES.server | typeof COMPILER_NAMES.edgeServer; }; gsp?: boolean; gssp?: boolean; customServer?: boolean; gip?: boolean; appGip?: boolean; locale?: string; locales?: readonly string[]; defaultLocale?: string; domainLocales?: readonly DomainLocale[]; scriptLoader?: any[]; isPreview?: boolean; notFoundSrcPage?: string; }; /** * `Next` context */ export interface NextPageContext { /** * Error object if encountered during rendering */ err?: (Error & { statusCode?: number; }) | null; /** * `HTTP` request object. */ req?: IncomingMessage; /** * `HTTP` response object. */ res?: ServerResponse; /** * Path section of `URL`. */ pathname: string; /** * Query string section of `URL` parsed as an object. */ query: ParsedUrlQuery; /** * `String` of the actual path including query. */ asPath?: string; /** * The currently active locale */ locale?: string; /** * All configured locales */ locales?: readonly string[]; /** * The configured default locale */ defaultLocale?: string; /** * `Component` the tree of the App to use if needing to render separately */ AppTree: AppTreeType; } export type AppContextType = { Component: NextComponentType; AppTree: AppTreeType; ctx: NextPageContext; router: Router; }; export type AppInitialProps = { pageProps: PageProps; }; export type AppPropsType = AppInitialProps & { Component: NextComponentType; router: Router; __N_SSG?: boolean; __N_SSP?: boolean; }; export type DocumentContext = NextPageContext & { renderPage: RenderPage; defaultGetInitialProps(ctx: DocumentContext, options?: { nonce?: string; }): Promise; }; export type DocumentInitialProps = RenderPageResult & { styles?: React.ReactElement[] | Iterable | JSX.Element; }; export type DocumentProps = DocumentInitialProps & HtmlProps; /** * Next `API` route request */ export interface NextApiRequest extends IncomingMessage { /** * Object of `query` values from url */ query: Partial<{ [key: string]: string | string[]; }>; /** * Object of `cookies` from header */ cookies: Partial<{ [key: string]: string; }>; body: any; env: Env; draftMode?: boolean; preview?: boolean; /** * Preview data set on the request, if any * */ previewData?: PreviewData; } /** * Send body of response */ type Send = (body: T) => void; /** * Next `API` route response */ export type NextApiResponse = ServerResponse & { /** * Send data `any` data in response */ send: Send; /** * Send data `json` data in response */ json: Send; status: (statusCode: number) => NextApiResponse; redirect(url: string): NextApiResponse; redirect(status: number, url: string): NextApiResponse; /** * Set draft mode */ setDraftMode: (options: { enable: boolean; }) => NextApiResponse; /** * Set preview data for Next.js' prerender mode */ setPreviewData: (data: object | string, options?: { /** * Specifies the number (in seconds) for the preview session to last for. * The given number will be converted to an integer by rounding down. * By default, no maximum age is set and the preview session finishes * when the client shuts down (browser is closed). */ maxAge?: number; /** * Specifies the path for the preview session to work under. By default, * the path is considered the "default path", i.e., any pages under "/". */ path?: string; }) => NextApiResponse; /** * Clear preview data for Next.js' prerender mode */ clearPreviewData: (options?: { path?: string; }) => NextApiResponse; /** * Revalidate a specific page and regenerate it using On-Demand Incremental * Static Regeneration. * The path should be an actual path, not a rewritten path. E.g. for * "/blog/[slug]" this should be "/blog/post-1". * @link https://nextjs.org/docs/app/building-your-application/data-fetching/incremental-static-regeneration#on-demand-revalidation-with-revalidatepath */ revalidate: (urlPath: string, opts?: { unstable_onlyGenerated?: boolean; }) => Promise; }; /** * Next `API` route handler */ export type NextApiHandler = (req: NextApiRequest, res: NextApiResponse) => unknown | Promise; /** * Utils */ export declare function execOnce ReturnType>(fn: T): T; export declare const isAbsoluteUrl: (url: string) => boolean; export declare function getLocationOrigin(): string; export declare function getURL(): string; export declare function getDisplayName

(Component: ComponentType

): string; export declare function isResSent(res: ServerResponse): boolean; export declare function normalizeRepeatedSlashes(url: string): string; export declare function loadGetInitialProps(App: NextComponentType, ctx: C): Promise; export declare const SP: boolean; export declare const ST: boolean; export declare class DecodeError extends Error { } export declare class NormalizeError extends Error { } export declare class PageNotFoundError extends Error { code: string; constructor(page: string); } export declare class MissingStaticPage extends Error { constructor(page: string, message: string); } export declare class MiddlewareNotFoundError extends Error { code: string; constructor(); } export interface CacheFs { existsSync: typeof fs.existsSync; readFile: typeof fs.promises.readFile; readFileSync: typeof fs.readFileSync; writeFile(f: string, d: any): Promise; mkdir(dir: string): Promise; stat(f: string): Promise<{ mtime: Date; }>; } export declare function stringifyError(error: Error): string; export {};