import type { Expression, File, JSXElement, JSXOpeningElement } from '@babel/types'; import type { SubscribeToSequencePropsResponse } from '@remotion/studio-shared'; import * as recast from 'recast'; import type { CanUpdateSequencePropsResponseTrue, CanUpdateSequencePropStatus, JsxComponentIdentity, LogLevel, SequenceNodePath } from 'remotion'; import { type VideoConfigIdentifierValues } from '../../helpers/video-config-values'; type CanUpdatePropStatus = CanUpdateSequencePropStatus; type StaticValueOptions = { allowSpecialValues: boolean; }; export declare const isStaticValue: (node: Expression, options?: StaticValueOptions) => boolean; export declare const extractStaticValue: (node: Expression, options?: StaticValueOptions) => unknown; export declare const getComputedStatus: (node: Expression, ast: File, videoConfigValues: VideoConfigIdentifierValues) => CanUpdatePropStatus; export declare const getNodePathForRecastPath: (recastPath: any, ast: File) => SequenceNodePath; export declare const findJsxElementPathAtNodePath: (ast: File, nodePath: SequenceNodePath) => recast.types.NodePath | null; export declare const findJsxElementAtNodePath: (ast: File, nodePath: SequenceNodePath) => JSXOpeningElement | null; export declare const findJsxElementNodeAtNodePath: (ast: File, nodePath: SequenceNodePath) => JSXElement | null; export type StaticJsxTextContent = { kind: 'jsx-text'; value: string; } | { kind: 'string-expression'; value: string; }; export declare const getStaticJsxChildrenAttribute: (jsxElement: JSXOpeningElement) => StaticJsxTextContent | null; export declare const hasJsxChildrenAttribute: (jsxElement: JSXOpeningElement) => boolean; export declare const getStaticJsxTextContent: (jsxElement: JSXElement) => StaticJsxTextContent | null; export declare const findNodePathForJsxElement: (ast: File, target: JSXOpeningElement) => SequenceNodePath | null; export declare const lineColumnToNodePath: (ast: File, targetLine: number, targetColumn?: number, fileContents?: string) => SequenceNodePath | null; export declare const lineColumnsToNodePaths: ({ ast, targets, fileContents, }: { ast: File; targets: { line: number; column: number; }[]; fileContents: string; }) => (SequenceNodePath | null)[]; export declare const resolveSequencePropsNodePathsFromFilename: ({ fileName, targets, remotionRoot, fileContentsCache, }: { fileName: string; targets: { line: number; column: number; }[]; remotionRoot: string; fileContentsCache: Map | null; }) => (SequenceNodePath | null)[]; export declare const computeSequencePropsStatusFromContent: ({ fileContents, nodePath, componentIdentity, keys, assetKeys, effects, }: { fileContents: string; nodePath: SequenceNodePath; componentIdentity: JsxComponentIdentity | null; keys: string[]; assetKeys?: string[]; effects: string[][]; }) => CanUpdateSequencePropsResponseTrue; export declare const computeSequencePropsStatus: ({ fileName, nodePath, componentIdentity, keys, assetKeys, effects, remotionRoot, fileContentsCache, }: { fileName: string; nodePath: SequenceNodePath; componentIdentity: JsxComponentIdentity | null; keys: string[]; assetKeys?: string[]; effects: string[][]; remotionRoot: string; fileContentsCache: Map | null; }) => CanUpdateSequencePropsResponseTrue; export declare const computeSequencePropsStatusFromFilenameByLocation: ({ fileName, line, column, componentIdentity, keys, assetKeys, effects, remotionRoot, logLevel, fileContentsCache, }: { fileName: string; line: number; column: number; componentIdentity: JsxComponentIdentity | null; keys: string[]; assetKeys?: string[]; effects: string[][]; remotionRoot: string; logLevel: LogLevel; fileContentsCache: Map | null; }) => SubscribeToSequencePropsResponse; export {};