2ea0c4106b
* Spec composer API * Add composer api implementation * Tests * Copyright * update sigs * cleanup * a snap * cleanup * linting * Tidy up * Adjust
21 lines
581 B
TypeScript
21 lines
581 B
TypeScript
/*
|
|
Copyright 2026 Element Creations Ltd.
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
|
|
Please see LICENSE files in the repository root for full details.
|
|
*/
|
|
|
|
/**
|
|
* API to interact with the message composer.
|
|
* @alpha Likely to change
|
|
*/
|
|
export interface ComposerApi {
|
|
/**
|
|
* Insert plaintext into the current composer.
|
|
* @param plaintext - The plain text to insert
|
|
* @returns Returns immediately, does not await action.
|
|
* @alpha Likely to change
|
|
*/
|
|
insertPlaintextIntoComposer(plaintext: string): void;
|
|
}
|