nezuhub/simple / node_modules /@remotion /codemods /dist /node-references.d.ts
nezuhub's picture
download
raw
2.28 kB
import type { SequenceNodePathRemapping } from '@remotion/studio-shared';
import type { SequenceNodePath } from 'remotion';
import type { CodemodProject, CodemodResult } from './codemod-project';
import { type CapturedJsxNodePath } from './get-node-path-remappings';
export type NodeReference = {
filePath: string;
nodePath: SequenceNodePath;
};
export type NodePathRemapping = SequenceNodePathRemapping & {
filePath: string;
};
export type CodemodNodeResult = CodemodResult & {
nodePathRemappings: NodePathRemapping[];
};
export type CodemodInsertionResult = CodemodNodeResult & {
insertedNode: NodeReference;
};
export type NodeSourceEdit = {
filePath: string;
output: string;
nodePathRemappings: SequenceNodePathRemapping[];
};
export declare const getInsertedNodeReferences: (remappings: NodePathRemapping[]) => NodeReference[];
export declare const getNodeEditResult: ({ project, edits, }: {
project: CodemodProject;
edits: NodeSourceEdit[];
}) => CodemodNodeResult;
export declare const getUnchangedStructureRemappings: ({ input, output, }: {
input: string;
output: string;
}) => NodeSourceEdit['nodePathRemappings'];
export declare const getKeyframeSourceLocationRemappings: ({ input, output, remappings, }: {
input: string;
output: string;
remappings: SequenceNodePathRemapping[];
}) => SequenceNodePathRemapping[];
export declare const getSubtreeEditRemappings: ({ before, after, subtrees, }: {
before: CapturedJsxNodePath[];
after: CapturedJsxNodePath[];
subtrees: {
before: ReadonlySet<object>;
after: ReadonlySet<object>;
}[];
}) => NodeSourceEdit['nodePathRemappings'];
export declare const getUpdatedNodeReference: ({ project, node, nodePathRemappings, }: {
project: CodemodProject;
node: NodeReference;
nodePathRemappings: NodePathRemapping[];
}) => NodeReference;
export declare const getUpdatedNodeReferences: ({ project, nodes, nodePathRemappings, }: {
project: CodemodProject;
nodes: readonly NodeReference[];
nodePathRemappings: NodePathRemapping[];
}) => NodeReference[];
export declare const groupNodeReferencesByFile: ({ project, nodes, }: {
project: CodemodProject;
nodes: NodeReference[];
}) => Map<string, SequenceNodePath[]>;

Xet Storage Details

Size:
2.28 kB
·
Xet hash:
958097bb1c49abe7f3d0aabc964d2fa9d42c2dd9d4aa36a37778902678125d41

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.