> ## Documentation Index
> Fetch the complete documentation index at: https://baileys.wiki/llms.txt
> Use this file to discover all available pages before exploring further.

# AppStateSyncKeyShare

> Protobuf class AppStateSyncKeyShare generated from WAProto.

Defined in: [WAProto/index.d.ts:5523](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L5523)

## Implements

* [`IAppStateSyncKeyShare`](/proto-reference/Message/interfaces/IAppStateSyncKeyShare)

## Constructors

### new AppStateSyncKeyShare()

> **new AppStateSyncKeyShare**(`p`?): [`AppStateSyncKeyShare`](/proto-reference/Message/classes/AppStateSyncKeyShare)

Defined in: [WAProto/index.d.ts:5524](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L5524)

#### Parameters

##### p?

[`IAppStateSyncKeyShare`](/proto-reference/Message/interfaces/IAppStateSyncKeyShare)

#### Returns

[`AppStateSyncKeyShare`](/proto-reference/Message/classes/AppStateSyncKeyShare)

## Properties

### keys

> **keys**: [`IAppStateSyncKey`](/proto-reference/Message/interfaces/IAppStateSyncKey)\[]

Defined in: [WAProto/index.d.ts:5525](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L5525)

#### Implementation of

[`IAppStateSyncKeyShare`](/proto-reference/Message/interfaces/IAppStateSyncKeyShare).[`keys`](/proto-reference/Message/interfaces/IAppStateSyncKeyShare#keys)

## Methods

### create()

> `static` **create**(`properties`?): [`AppStateSyncKeyShare`](/proto-reference/Message/classes/AppStateSyncKeyShare)

Defined in: [WAProto/index.d.ts:5526](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L5526)

#### Parameters

##### properties?

[`IAppStateSyncKeyShare`](/proto-reference/Message/interfaces/IAppStateSyncKeyShare)

#### Returns

[`AppStateSyncKeyShare`](/proto-reference/Message/classes/AppStateSyncKeyShare)

***

### decode()

> `static` **decode**(`r`, `l`?): [`AppStateSyncKeyShare`](/proto-reference/Message/classes/AppStateSyncKeyShare)

Defined in: [WAProto/index.d.ts:5528](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L5528)

#### Parameters

##### r

`Uint8Array`\<`ArrayBufferLike`> | `Reader`

##### l?

`number`

#### Returns

[`AppStateSyncKeyShare`](/proto-reference/Message/classes/AppStateSyncKeyShare)

***

### encode()

> `static` **encode**(`m`, `w`?): `Writer`

Defined in: [WAProto/index.d.ts:5527](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L5527)

#### Parameters

##### m

[`IAppStateSyncKeyShare`](/proto-reference/Message/interfaces/IAppStateSyncKeyShare)

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

> `static` **fromObject**(`d`): [`AppStateSyncKeyShare`](/proto-reference/Message/classes/AppStateSyncKeyShare)

Defined in: [WAProto/index.d.ts:5529](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L5529)

#### Parameters

##### d

#### Returns

[`AppStateSyncKeyShare`](/proto-reference/Message/classes/AppStateSyncKeyShare)

***

### getTypeUrl()

> `static` **getTypeUrl**(`typeUrlPrefix`?): `string`

Defined in: [WAProto/index.d.ts:5532](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L5532)

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

> **toJSON**(): `object`

Defined in: [WAProto/index.d.ts:5531](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L5531)

#### Returns

`object`

***

### toObject()

> `static` **toObject**(`m`, `o`?): `object`

Defined in: [WAProto/index.d.ts:5530](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L5530)

#### Parameters

##### m

[`AppStateSyncKeyShare`](/proto-reference/Message/classes/AppStateSyncKeyShare)

##### o?

`IConversionOptions`

#### Returns

`object`
