/** * ------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. * See License in the project root for license information. * ------------------------------------------------------------------------------------------- */ import type { ParseNode } from "./parseNode.js"; /** * Defines the contract for a factory that is used to create {@link ParseNode}s. */ export interface ParseNodeFactory { /** * Returns the content type this factory's parse nodes can deserialize. */ getValidContentType(): string; /** * Creates a {@link ParseNode} from the given {@link ArrayBuffer} and content type. * @param contentType the content type of the {@link ArrayBuffer}. * @param content the {@link ArrayBuffer} to read from. * @returns a {@link ParseNode} that can deserialize the given {@link ArrayBuffer}. */ getRootParseNode(contentType: string, content: ArrayBuffer): ParseNode; } //# sourceMappingURL=parseNodeFactory.d.ts.map