import type { TSESTree } from '../ts-estree'; declare const isOptionalChainPunctuator: (token: TSESTree.Token | null | undefined) => token is { value: "?."; } & TSESTree.PunctuatorToken; declare const isNotOptionalChainPunctuator: (token: TSESTree.Token | null | undefined) => token is Exclude; declare const isNonNullAssertionPunctuator: (token: TSESTree.Token | null | undefined) => token is { value: "!"; } & TSESTree.PunctuatorToken; declare const isNotNonNullAssertionPunctuator: (token: TSESTree.Token | null | undefined) => token is Exclude; /** * Returns true if and only if the node represents: foo?.() or foo.bar?.() */ declare const isOptionalCallExpression: (node: TSESTree.Node | null | undefined) => node is { optional: boolean; } & TSESTree.CallExpression; /** * Returns true if and only if the node represents logical OR */ declare const isLogicalOrOperator: (node: TSESTree.Node | null | undefined) => node is Partial & TSESTree.LogicalExpression; /** * Checks if a node is a type assertion: * ``` * x as foo * x * ``` */ declare const isTypeAssertion: (node: TSESTree.Node | null | undefined) => node is Extract; declare const isVariableDeclarator: (node: TSESTree.Node | null | undefined) => node is Extract; declare const isFunction: (node: TSESTree.Node | null | undefined) => node is Extract; declare const isFunctionType: (node: TSESTree.Node | null | undefined) => node is Extract; declare const isFunctionOrFunctionType: (node: TSESTree.Node | null | undefined) => node is Extract; declare const isTSFunctionType: (node: TSESTree.Node | null | undefined) => node is Extract; declare const isTSConstructorType: (node: TSESTree.Node | null | undefined) => node is Extract; declare const isClassOrTypeElement: (node: TSESTree.Node | null | undefined) => node is Extract; /** * Checks if a node is a constructor method. */ declare const isConstructor: (node: TSESTree.Node | null | undefined) => node is Partial & (TSESTree.MethodDefinitionComputedName | TSESTree.MethodDefinitionNonComputedName); /** * Checks if a node is a setter method. */ declare function isSetter(node: TSESTree.Node | undefined): node is { kind: 'set'; } & (TSESTree.MethodDefinition | TSESTree.Property); declare const isIdentifier: (node: TSESTree.Node | null | undefined) => node is Extract; /** * Checks if a node represents an `await …` expression. */ declare const isAwaitExpression: (node: TSESTree.Node | null | undefined) => node is Extract; /** * Checks if a possible token is the `await` keyword. */ declare const isAwaitKeyword: (token: TSESTree.Token | null | undefined) => token is { value: "await"; } & TSESTree.IdentifierToken; /** * Checks if a possible token is the `type` keyword. */ declare const isTypeKeyword: (token: TSESTree.Token | null | undefined) => token is { value: "type"; } & TSESTree.IdentifierToken; /** * Checks if a possible token is the `import` keyword. */ declare const isImportKeyword: (token: TSESTree.Token | null | undefined) => token is { value: "import"; } & TSESTree.KeywordToken; declare const isLoop: (node: TSESTree.Node | null | undefined) => node is Extract; export { isAwaitExpression, isAwaitKeyword, isConstructor, isClassOrTypeElement, isFunction, isFunctionOrFunctionType, isFunctionType, isIdentifier, isImportKeyword, isLoop, isLogicalOrOperator, isNonNullAssertionPunctuator, isNotNonNullAssertionPunctuator, isNotOptionalChainPunctuator, isOptionalChainPunctuator, isOptionalCallExpression, isSetter, isTSConstructorType, isTSFunctionType, isTypeAssertion, isTypeKeyword, isVariableDeclarator, }; //# sourceMappingURL=predicates.d.ts.map