import type { TaglibLookup } from "@marko/compiler/babel-utils"; import type TS from "typescript/lib/tsserverlibrary"; import { type Parsed } from "../../parser"; import type { Meta } from "../../util/project"; /** * The `const` holding the resolved runtime api and the name it is exported as. * Consumers of the extracted output (eg the `.d.marko` printer) need to * recognize these to strip the internal export back out. */ export declare const INTERNAL_API_VAR = "__marko_internal_api"; export declare const INTERNAL_API_EXPORT_NAME = "~api"; /** * Iterate over the Marko CST and extract all the script content. */ export declare enum ScriptLang { js = "js", ts = "ts" } export interface ExtractScriptOptions { ts?: typeof TS; parsed: Parsed; lookup: TaglibLookup; scriptLang: ScriptLang; runtimeTypesCode?: string; translator: Meta["config"]["translator"]; } export declare function extractScript(opts: ExtractScriptOptions): import("../..").Extracted;