Website : rimsha.abasa.com
backdoor
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
talha_silentcontent
/
node_modules
/
slate-hyperscript
/
dist
/
Filename :
tokens.d.ts
back
Copy
import { Path, Text } from 'slate'; /** * All tokens inherit from a single constructor for `instanceof` checking. */ export declare class Token { } /** * Anchor tokens represent the selection's anchor point. */ export declare class AnchorToken extends Token { offset?: number; path?: Path; constructor(props?: { offset?: number; path?: Path; }); } /** * Focus tokens represent the selection's focus point. */ export declare class FocusToken extends Token { offset?: number; path?: Path; constructor(props?: { offset?: number; path?: Path; }); } /** * Add an anchor token to the end of a text node. */ export declare const addAnchorToken: (text: Text, token: AnchorToken) => void; /** * Get the offset if a text node has an associated anchor token. */ export declare const getAnchorOffset: (text: Text) => [number, AnchorToken] | undefined; /** * Add a focus token to the end of a text node. */ export declare const addFocusToken: (text: Text, token: FocusToken) => void; /** * Get the offset if a text node has an associated focus token. */ export declare const getFocusOffset: (text: Text) => [number, FocusToken] | undefined; //# sourceMappingURL=tokens.d.ts.map