UNPKG

marko

Version:

Optimized runtime for Marko templates.

13 lines (12 loc) 909 B
import { AccessorProp, type BranchScope, type Scope } from "../common/types"; export declare function createScope($global: Scope[AccessorProp.Global], closestBranch?: BranchScope): Scope; export declare function syncGen(scope: Scope): void; export declare function _assert_init(scope: Scope, accessor: string): any; export declare function collectScopes(fn: () => void): Scope[]; export declare function skipScope(): number; export declare function findBranchWithKey(scope: Scope, key: string): BranchScope | undefined; export declare function destroyBranch(branch: BranchScope): void; export declare function destroyScope(scope: Scope): void; export declare function removeAndDestroyBranch(branch: BranchScope): void; export declare function insertBranchBefore(branch: BranchScope, parentNode: ParentNode, nextSibling: Node | null): void; export declare function tempDetachBranch(branch: BranchScope): void;